formula not calculating correctly off and on

topswim

Board Regular
Joined
May 14, 2002
Messages
133
Office Version
  1. 365
Platform
  1. Windows
Afternoon, I perform a lot of Vlookups but sometimes I run into a problem where it's not working correctly and I do not understand why. To make it easy I have added the images so you can see exactly what I'm doing.

The first image is where my formula is in the second is where I'm pulling the information from

These are both in the same workbook, just on different sheets.

=VLOOKUP(O2,'VF Recon from Ron 10-6'!A:R,16,FALSE),

this should pull the value from P 48
 

Attachments

  • formula issue.png
    formula issue.png
    24.6 KB · Views: 7
  • formula issue2.png
    formula issue2.png
    53.4 KB · Views: 7
Last edited:

Excel Facts

Waterfall charts in Excel?
Office 365 customers have access to Waterfall charts since late 2016. They were added to Excel 2019.
So, you are matching on column A, right?
See how one of the entries has a green triangle in the upper corner?
This usually means that the entry is text. So you may have a mixture of numeric and text entries (numbers entered as text).

In order for VLOOKUP to work, you can only compare fields of the same data type, meaning you can only compare numbers-to-numbers or text-to-text.
Comparing numbers-to-text will NOT work.

So you need to make sure that all your data is of the same data type.
You can easily check any value with the ISNUMBER function, i.e. if
Excel Formula:
=ISNUMBER(A2)
returns FALSE, it means A2 is entered as text, and not as a number.
 
Upvote 0
Solution
So, you are matching on column A, right?
See how one of the entries has a green triangle in the upper corner?
This usually means that the entry is text. So you may have a mixture of numeric and text entries (numbers entered as text).

In order for VLOOKUP to work, you can only compare fields of the same data type, meaning you can only compare numbers-to-numbers or text-to-text.
Comparing numbers-to-text will NOT work.

So you need to make sure that all your data is of the same data type.
You can easily check any value with the ISNUMBER function, i.e. if
Excel Formula:
=ISNUMBER(A2)
returns FALSE, it means A2 is entered as text, and not as a number.
Thank you. I thought I did that once, but tried again and it worked.
 
Upvote 0
You are welcome.
 
Upvote 0

Forum statistics

Threads
1,215,544
Messages
6,125,441
Members
449,225
Latest member
mparcado

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