IF? - Lookup a number

mypig7

Active Member
Joined
Sep 27, 2004
Messages
285
I have 4 cells. A2,A3,A4,A5
3 of the cells contain the word "Fault" and 1 contains a number e.g. 55 (this number can vary though)
I want to enter a forumla (say in A1) so that if one of the cells in the range A2:A5 contains a number that number appears in A1.
 

Excel Facts

How can you turn a range sideways?
Copy the range. Select a blank cell. Right-click, Paste Special, then choose Transpose.
Is it only one cell that will contain a number?

If yes, try: =LOOKUP(9.9999999999E+307,A2:A5)
 
Upvote 0
This works, in cell B2 Paste the following formula
=SMALL($A$2:$A$5,0+1)
Then in cell A1 enter the formula A1 = C3
 
Upvote 0
thanks v much

Thanks.

If I get #NUM! appearing because no number appears is there any way I can get the letters FAULT to appear instead of #NUm!

Thanks
 
Upvote 0
=If(isnumber(formula),formula,"FAULT)

replace formula with the actual formula you used
 
Upvote 0

Forum statistics

Threads
1,226,244
Messages
6,189,843
Members
453,575
Latest member
Taljanin

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