I'm getting a #NAME? error and I just cant figure out why!! Deadline upcoming :(

bigdan

Well-known Member
Joined
Oct 5, 2009
Messages
846
Office Version
  1. 2013
Platform
  1. Windows
So I've got a ****load of work to do this weekend for Monday's deadline and I'm now getting this error and I just cant figure out why.

So to start with I'm pulling a bunch of data from our system, called BPC. F2025 is already loaded in the system, I'm now trying to get F2026's data.
The tab which has the info for F25 is called - F25_NextY2_Monthly_FcstBPC.
I've made another tab for F26 called F26_NextY3_Monthly_FcstBPC test

Both of these tabs look exactly the same. The contents within are 2% different but for all intents and purposes they're the same. So I would expect all vlookups on these tabs to function the same as well.

Now I've got a bunch of tabs that will pull information from here. The one I'm in now is called H8085. This has been able to pull the information from F25 just fine. The formula for Jan 2025 is: =VLOOKUP($B7,F25_NextY2_Monthly_FcstBPC!$A$14:$BD$4002,CJ$4,FALSE).

So I tried a formula that's almost exactly the same, for the same row, for Jan 2026: =VLOOKUP($B7,F26_NextY3_Monthly_FcstBPC test!$A$14:$BD$4002,CZ$4,FALSE)
But that's giving me a #NAME? error.

Please help!!
 

Excel Facts

Enter current date or time
Ctrl+: enters current time. Ctrl+; enters current date. Use Ctrl+: Ctrl+; Enter for current date & time.
What is the sheet name that the formula with the error is meant to be accessing ?
If it is not meant to have a space before test then remove it.
If it meant to have a space you need to enclose it in single quotes.

eg with single quotes added it will look like this:
Excel Formula:
=VLOOKUP($B7, 'F26_NextY3_Monthly_FcstBPC test'!$A$14:$BD$4002, CZ$4, FALSE)
 
Upvote 0
Solution
What is the sheet name that the formula with the error is meant to be accessing ?
If it is not meant to have a space before test then remove it.
If it meant to have a space you need to enclose it in single quotes.

eg with single quotes added it will look like this:
Excel Formula:
=VLOOKUP($B7, 'F26_NextY3_Monthly_FcstBPC test'!$A$14:$BD$4002, CZ$4, FALSE)

Wow, fixed!! Thanks very much. At first I was thinking perhaps the length of the tab is the problem. But so now you're saying its the space, which also makes sense.

Thanks a lot!
 
Upvote 0
Thanks for letting me know. Glad I could help. Hope you are on track to make your deadline.
 
Upvote 0

Forum statistics

Threads
1,224,505
Messages
6,179,153
Members
452,891
Latest member
JUSTOUTOFMYREACH

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