Excel recognizes value in countif, and gives 1's and zeros, but vlookup using the same value results in #N/A

snoh8r

New Member
Joined
Jan 30, 2018
Messages
22
Office Version
  1. 365
Platform
  1. Windows
I have two tables in Excel. In one is the exported data from a Power Bi presentation. That presentation is actually a mash-up of two Excel tables. I wanted to verify that the mash-up was catching everything so I exported that data and compared it to the raw data of one of the two originating sources. I can do a countif and it seems to work OK. I even did a find and determined that records in one column identified with a 1 for matching were indeed in the source column. But, when I do a vlookup to match the countif value to a lookup column, it gives #/N/A. Why would it be able to verify it exists in countif but not be able to find it in vlookup?

Excel Formula:
=VLOOKUP(B7548,'[All WOs - Dates v2 2-9-2021 8-05-36 AM.xlsx]Sheet1'!$A:$R,2,FALSE)
<---Fails
Excel Formula:
=COUNTIF('[All WOs - Dates v2 2-9-2021 8-05-36 AM.xlsx]Sheet1'!$A:$A,B7548)
<---works

I also set all data types to "general".
 

Some videos you may like

Excel Facts

What do {} around a formula in the formula bar mean?
{Formula} means the formula was entered using Ctrl+Shift+Enter signifying an old-style array formula.

mart37

Well-known Member
Joined
Aug 4, 2017
Messages
1,049
Office Version
  1. 2016
Platform
  1. Windows
maybe uppercase problem
 

Watch MrExcel Video

Forum statistics

Threads
1,127,120
Messages
5,622,855
Members
415,934
Latest member
adstocking

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
Top