This can't be that hard - but I can't find the answer!!

cjordan

New Member
Joined
Feb 26, 2002
Messages
6
I've got a spreadsheet #1 that refers to another spreadsheet #2.
This is what #1 looks like:
Null Null BCI BFI BCL
AUM
A/R
A/P

I want to fill #1 with the corresponding intersection values from #2 which looks like this
Null Null BFI BME BCL BCI
A/R
Salaries
Benefits
AUM
A/P

So, basically it's a simultaneous lookup from the column and row from Spreadsheet #1 to corresponding intersection from Spreadsheet #2. The position of the relative data from Spreadsheet #2 is not static - it comes from a database, so I can't reference cells statically.

Any thoughts?

Thanks!!

Chris.
This message was edited by cjordan on 2002-02-27 13:31
This message was edited by cjordan on 2002-02-27 13:37
This message was edited by cjordan on 2002-02-27 13:54
 

Excel Facts

How to calculate loan payments in Excel?
Use the PMT function: =PMT(5%/12,60,-25000) is for a $25,000 loan, 5% annual interest, 60 month loan.
Okay, so Sheet1!B1:D1 contains {"BCI","BFI","BCL"} and Sheet1!A2:A4 contains {"AUM";"A/R";"A/P"}. On Sheet2, B1:E1 contains {"BFI","BME","BCL","BCI"} and A2:A6 contains {"A/R";"Salaries";"Benefits";"AUM";"A/P"}.

1. Select Sheet2!A1:E6, choose the Insert | Name | Create... menu command, check "Top row" and "Left column", and press [ OK ].

2. Back on Sheet1 enter the formula...

=INDIRECT("Sheet2!"&SUBSTITUTE($A2,"/","_")) INDIRECT("Sheet2!"&B$1)

...into cell B2, fill right to D2 and fill down to D4.
This message was edited by Mark W. on 2002-02-27 15:33
 
Upvote 0
Mark,

Thanks - I tried this and I'm getting a #REF! - I've clicked on "=" to edit formula and result says "volatile".

What's the problem?
Thanks for your help.

Chris
 
Upvote 0
Ok - I got it!!

I also had spaces in the header - which I found INDIRECT doesn't like so I added another substitute in the second indirect.

Works great!!

You're the man....

Christina.
 
Upvote 0

Forum statistics

Threads
1,214,553
Messages
6,120,182
Members
448,948
Latest member
spamiki

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