Advanced lookup/Reference Excel 2010

harry123

New Member
Joined
Jul 12, 2011
Messages
2
Hi all,

I'm using Excel 2010 and Windows 7, and have exhausted all Help avenues.

My spreadsheet looks like this:
Two sheets, one is F9 and the other is Lookup

F9 (Line number is NOT the Excel row number)
Line Nr|Line Desc|Amt|Allocations
1 |overhead |100|ovh
165 |Misc |150|admin |aud |good

Lookup
Allocation | Line Nr | Desc
Ovh | To be looked up from F9
admin |
aud |
good |

I have tried a huge nested IF statement, with several MATCH and INDEX statements, but to no avail, as there can be up to 8 columns of allocations. Due to 8 columns in use (only the first 5 could be supported), I had to use a second column to continue the nested IF, but everything falls apart when the allocation is in the second column.

What do I want to do?
The lookup sheet has to be able to pull in the relevant line nr and description, when the allocation is given. In Lookup sheet, the first row (Ovh) needs to pick up Line nr 1, while admin, aud and good needs to pick up line nr 165.

Any ideas?
 

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.
If the allocation can only appear once:

=INDEX('F9'!A$1:A$3,SUMPRODUCT(('F9'!$D$1:$F$3=$A2)*ROW('F9'!$A$1:$A$3)))

in B2 copied down and across.
 
Upvote 0

Forum statistics

Threads
1,224,603
Messages
6,179,854
Members
452,948
Latest member
UsmanAli786

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