# Hlookup in Excel converting to Access

Status
This thread has been Locked and is not open to further replies. Please start a New Thread if you're having a similar issue. View our Welcome Guide to learn how to use this site.

#### Cooker2k

How do I convert this to Access?

In excel I have a formula which takes production levels for an individual an applies them to the table below to get their rate. =IF(BE6>0,VLOOKUP(BL6,Grids!\$G\$23:\$J\$34,4),0) How do I convert that to Access? Do I do it in a query or do I create multiple tables? Here's another formula -- =IF(CS6="Yes",VLOOKUP(CP6,Grids!\$G\$3:\$L\$9,HLOOKUP(CR6,Grids!\$G\$3:\$L\$9,2)),0). If needed, I can provide that grid as well.

Here's the table called "Grids" used in the EXCEL formula below. The rep table has one row per individual rep with their values stored in BE6 and BL6. (argh! I can't copy/paste the grid into this forum post!)

Column G H I J
Production LevelYear 1Year 2Year 3
<\$200,0000NANANA\$200,000-\$299,999 200000NANANA\$300,000-\$399,999300000NANANA\$400,000-\$499,99940000028%34%36%\$500,000 - 599,99950000036%37%39%\$600,000 - 699,99960000037%38%40%\$700,000 - 799,99970000038%39%41%\$800,000 - 899,99980000039%40%41%\$900,000 - 999,99990000039%40%41%\$1,000,000 - 1,499,999100000040%41%42%\$1,500,000 - 1,999,999150000041%42%42%\$2,000,000+200000042%42%43%

#### OBP

You use one or more Queries to do what you want. If you can explain in words what the lookup does I can advise you how to do it in a query.
From what you have already written it suggests that the Individuals "rates" would be in a separate table, in which case the query only needs to link the 2 tables to provide the data.
If the rates are in the same table a query will provide them anyway.
You can attach a copy of a Screen shot of the Table by pasting it in to Excel or word and the zipping it and attaching it to your post and then using the "Go Advanced" & "Manage Attachments" Buttons below where you type.

I can provide you with examples if required.

Status
This thread has been Locked and is not open to further replies. Please start a New Thread if you're having a similar issue. View our Welcome Guide to learn how to use this site.

As Seen On