lookup sheet name

callen12

New Member
Joined
Apr 14, 2010
Messages
35
I know this is simple but cant get my head around it to work

I have a spreadsheet tab names Master, List , and 1-31.

List sheet has name range (Subtotal) listing sheet names and value in cell F30. 3 column is running sum. (H:J)

On each Tab (1-31) i want the running sum for the day from List sheet.

I know i can do this individually but cant figure out the indirect/vlookup formula so when i rebuild from my master after changes i dont have to modifiy each sheet/formula.

Convaluted but thats how my brain is working right now.lol.

Thanks for any help.
 

Excel Facts

How to fill five years of quarters?
Type 1Q-2023 in a cell. Grab the fill handle and drag down or right. After 4Q-2023, Excel will jump to 1Q-2024. Dash can be any character.
If I read that right,

=vlookup(MID(CELL("filename"),FIND("]",CELL("filename"))+1,100),Subtotal,3,0)
 
Upvote 0
I didn't allow for the sheetnames being numeric

=vlookup(--MID(CELL("filename"),FIND("]",CELL("filename"))+1,100),Subtotal,3,0)

However, this will show as an error on the 'master' sheet.
 
Upvote 0
=VLOOKUP(V2,Subtotal,3,FALSE)

v2 contains sheetname

a) Is there a formula that yields the sheet name of the current sheet or is the sheet name just typed in?

b) What kind information is associated with a sheet name in the 3rd column of Subtotal?
 
Upvote 0
=MID(CELL("filename",A1),FIND("]",CELL("filename",A1))+1,255) = sheetname in Cell A1

What do you want to do with it? How is this related to the VLOOKUP you posted?

By the way, the following doesn't need any hard-coded constant like 255 or 31...

=REPLACE(CELL("filename",A1),1,FIND("]",CELL("filename",A1)),"")
 
Upvote 0
When pasted into the sheets the above formula

=vlookup(--MID(CELL("filename"),FIND("]",CELL("filename"))+1,100),Subtotal,3,0)

gives an #N/A

Which was the same error i was getting with the original formula?
 
Upvote 0
When pasted into the sheets the above formula

=vlookup(--MID(CELL("filename"),FIND("]",CELL("filename"))+1,100),Subtotal,3,0)

gives an #N/A

Which was the same error i was getting with the original formula?

Better...

Either:

=VLOOKUP(A1,Subtotal,3,0)

Or:

=VLOOKUP(REPLACE(CELL("filename",A1),1,FIND("]",CELL("filename",A1)),""),Subtotal,3,0)

Does this help?

Note. FALSE and 0 have the same effect in a function like VLOOKUP or MATCH.
 
Upvote 0

Forum statistics

Threads
1,224,521
Messages
6,179,280
Members
452,902
Latest member
Knuddeluff

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