Formula Not Working On Numbers Only

ExcelRoy

Well-known Member
Joined
Oct 2, 2006
Messages
2,540
Office Version
  1. 365
Platform
  1. Windows
Hi,

I have the following formula that looks up C27 on a sheet named "Maintenance" column C and returns D27

this works fine for alpha numeric but just numeric it seems not to return anything

ie?:

If I typed 64512 it should return contents of D27 but nothing is returned

But if I type DFIB/2 it works fine

Any ideas

Thnaks

=IFERROR(INDEX(Maintenance!$D$9:$D$2000,MATCH(C27,Maintenance!$C$9:$C$2000,0),0),"")
 

Excel Facts

How to find 2nd largest value in a column?
MAX finds the largest value. =LARGE(A:A,2) will find the second largest. =SMALL(A:A,3) will find the third smallest
Are the numbers in column C stored as numbers or text?
If you try to match the number 7 and the value in C is 7 stored as a text value match will return a #N/A error that iferror will turn into a blank.
 
Upvote 0
Hi Scott T,

Both at set to "General" and "" is returned so no error at all

Thanks
 
Upvote 0
If you put a ' in front of a number it will store it as text, or if you use the text function to format it, regardless of if the cell is set to general.

Since you used IFERROR the error will not be displayed as you are telling excel to show "" instead of any error.
Try testing one of the cells. If true is returned the it is stored as a number if false is returned it is stored as text.
Code:
=ISNUMBER(C27)
 
Upvote 0
yup both different problem now solved!

Nice little trick

Many thanks for your help
 
Upvote 0

Forum statistics

Threads
1,224,823
Messages
6,181,184
Members
453,020
Latest member
Mohamed Magdi Tawfiq Emam

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