Using data in a cell to look in a sheet of the same name

nickels

New Member
Joined
Jul 15, 2004
Messages
26
Wondering if anyone can help me out

I have a list of account codes in a "Summary" sheet. I then have a seperate sheet for each account code. I want the information contained in cell A2 in every account code sheet to be pasted into the summary sheet next to its corressponding account code.

I have around 100 account codes so i don't want to keep clicking back and forth to each cell in every sheet, does anyone know a shortcut where basically i can just fill down and it looks at the account code in column A then goes to the sheet with that name and then gives whatever is in cell "A2" in that sheet into column B?? or some vba code that might work??

thanks
 
:whistle: :)

Sorry to Nimrod and HalfAce, but I'd propose a different solution.., that is using the formula.

nickels, enter the formula below in cell B1 of summary sheet, then copy down:

=INDIRECT(A2&"!$A$2")

POst for feedback

Cia :biggrin: :cool: o
 
Upvote 0

Excel Facts

Which lookup functions find a value equal or greater than the lookup value?
MATCH uses -1 to find larger value (lookup table must be sorted ZA). XLOOKUP uses 1 to find values greater and does not need to be sorted.
Chiello

Thank you very much, it worked perfectly. Strange how no matter what you do in excel there always seems to be a simpler answer out there! (y)

nickels
 
Upvote 0

Forum statistics

Threads
1,214,998
Messages
6,122,639
Members
449,093
Latest member
Ahmad123098

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