if statement with numbers stored as text

jb00976

New Member
Joined
Oct 23, 2017
Messages
32
I have a spreadsheet called "Toronto" where column D contains numbers stored as text customer numbers like 01234567.

I have a second spreadsheet called "HO Report" where column C ("Customer Number") has another list of customer numbers (same format also stored as text) and has column L ("ACQ/REP") which has the text values of either "Acq" or "Rep". This spreadsheet is formatted as a table

I want to use an if statement to see if Column C in the "Toronto" spreadsheet matches column D in the "HO Report" spreadsheet and if so return the corresponding information in column L in the "HO Report" spreadsheet.

I have tried the following

=if(Table1[Customer Number],'Toronto'!D159,Table1[ACQ/REP],"NO")

but, all I get back is "No" every time.

Please help!

Thank you in advance.
 

Excel Facts

Why does 9 mean SUM in SUBTOTAL?
It is because Sum is the 9th alphabetically in Average, Count, CountA, Max, Min, Product, StDev.S, StDev.P, Sum, VAR.S, VAR.P.
Hi. If you want find only a match, you can use function Match(ValueToFind,RangeToFind,0)
If you need return values associated to this match, you could use VLOOKUP, Index + Match, XLOOKUP (require OFFICE 365)

If you want more help, please try prepare a data example using add-in specifically for this, it can be found here XL2BB
Pay attention to this post XL2BB 2 Square
 
Upvote 0

Forum statistics

Threads
1,215,603
Messages
6,125,788
Members
449,260
Latest member
Mrw1

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