Insert cell value as sheet name in VLOOKUP formula

purplecherrymuffins

New Member
Joined
Apr 29, 2022
Messages
2
Office Version
  1. 365
Platform
  1. Windows
  2. Web
Heeeelllo, I am not sure how this works, I've invested a lot of time into this, please help. Thanks so much.
So...
I have this formula, which works perfectly fine, but I want to make it more automatic right?
=IFNA(VLOOKUP(B5,IMPORTRANGE("mydocURL", "517!A:F"),6,FALSE), "0")

I have several columns and in each column all I do is change the sheet name, since my formula looks for the same from the same value every time
example
COLUMN 1 looks like this
=IFNA(VLOOKUP(B5,IMPORTRANGE("mydocURL", "517!A:F"),6,FALSE), "0")
=IFNA(VLOOKUP(B6,IMPORTRANGE("mydocURL", "517!A:F"),6,FALSE), "0")
=IFNA(VLOOKUP(B7,IMPORTRANGE("mydocURL", "517!A:F"),6,FALSE), "0")
and so on ..

then column two looks like this
=IFNA(VLOOKUP(B5,IMPORTRANGE("mydocURL", "551!A:F"),6,FALSE), "0")
=IFNA(VLOOKUP(B6,IMPORTRANGE("mydocURL", "551!A:F"),6,FALSE), "0")
=IFNA(VLOOKUP(B7,IMPORTRANGE("mydocURL", "551!A:F"),6,FALSE), "0")

Another person helps me fill out the sheet and she knows that the only change she must do is the three number (which is the NAME of the new sheet she insertsm it always is a 3 digit number, and it will never change. So I am trying to insert the value of a cell so I don't have to manually erase the numbers.
I hope I explained myself.
thanks
 
Last edited by a moderator:

Excel Facts

Create a Pivot Table on a Map
If your data has zip codes, postal codes, or city names, select the data and use Insert, 3D Map. (Found to right of chart icons).
Welcome to the MrExcel board!

Is this a Google Sheets question?
1651372202216.png
}

Hi! No, its Excel:)
 
Upvote 0

Forum statistics

Threads
1,223,893
Messages
6,175,240
Members
452,621
Latest member
Laura_PinksBTHFT

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