Lookup formula-please help

evanswright

Board Regular
Joined
Mar 22, 2007
Messages
94
Hello All,

I have the following data that I need to create a formula from:
HCC Raw Data TEST FILE.xls
HIJKLMNOPQRSTUVWXYZAAABACADAEAF
3FEMALE0-34FEMALE35-44FEMALE45-54FEMALE55-59FEMALE60-64FEMALE65-69FEMALE70-74FEMALE75-79FEMALE80-84FEMALE85-89FEMALE90-94FEMALE95-GTMALE0-34MALE35-44MALE45-54MALE55-59MALE60-64MALE65-69MALE70-74MALE75-79MALE80-84MALE85-89MALE90-94MALE95-GTMED_F_D
4
5
60000001000000000000000000
HCC_Pt_C_Data


If the row has the number 1, I need to create a vlookup formula on the column heading that has the 1 in it. So for this example the 1 is in Female70-74. I need to then create a vlookup formula on Female70-74 to return the corresponding factor.
Please Help :oops:
Thank you very much.
 

Excel Facts

Will the fill handle fill 1, 2, 3?
Yes! Type 1 in a cell. Hold down Ctrl while you drag the fill handle.
There will only be ONE occurance of the number 1 in that row?
Code:
=VLOOKUP(INDEX(H1:AF1,MATCH(1,H6:AF6)),lookuprange,colref,false)
 
Upvote 0
Yes only one for this example. Thank you.

Another question
I have another list that could have the number 1 populated 1 to 15 times in the range, would I be able use this formula?
 
Upvote 0

Forum statistics

Threads
1,214,522
Messages
6,120,019
Members
448,938
Latest member
Aaliya13

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top