Looking up Text and Numeric Entries

copyboy007

Board Regular
Joined
May 17, 2005
Messages
64
Office Version
  1. 2016
Platform
  1. Windows
I'm seeking a formula that can look up both numeric and alphanumeric entries to find dates of matching invoices listed in another worksheet that has same invoice entries. But, the numeric invoice entries are in text format causing the lookup formula to give a #VALUE error for either of these formulas:

This works for alphanumeric entries, but not with numeric entries:
=VLOOKUP(I51768,'Entry Date vs Invoice Date'!C$1:G66000,5,FALSE)

This works with numeric entries, but not with alphanumeric entries:
=VLOOKUP(VALUE(I51768),'Entry Date vs Invoice Date'!C$1:G66000,5,FALSE)

Any advice?
 

Excel Facts

Difference between two dates
Secret function! Use =DATEDIF(A2,B2,"Y")&" years"&=DATEDIF(A2,B2,"YM")&" months"&=DATEDIF(A2,B2,"MD")&" days"
I find it is usually easier to fix the data, with a simple "Text to Columns" on the matching column, to make them all the same type.
 
Upvote 0
If you want them to all be text, select your column, then go to Data menu, and select "Text to Columns" on the "Data Tools" ribbon.
Hit next twice to get to step 3, then choose the Text option and click finish.
Now, every entry in that column will be "Text" and not "Number".
 
Upvote 0
If you want them to all be text, select your column, then go to Data menu, and select "Text to Columns" on the "Data Tools" ribbon.
Hit next twice to get to step 3, then choose the Text option and click finish.
Now, every entry in that column will be "Text" and not "Number".


Appreciate the extra clarification. Works now. Thank you!
 
Upvote 0

Forum statistics

Threads
1,215,730
Messages
6,126,528
Members
449,316
Latest member
sravya

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