IF function using negative numbers an 3 options

22222222

New Member
Joined
Nov 5, 2013
Messages
4
I'm trying to make a cell do the following :

if cell H12 is above 5 show "above", if it is below -5 show "below", if it is between -5 and 5 (not including 5 or -5) show in line.

Can anyone tell me what I need to type in... I have tried all sorts !:confused:

Big thanks in advance
 

Excel Facts

Why are there 1,048,576 rows in Excel?
The Excel team increased the size of the grid in 2007. There are 2^20 rows and 2^14 columns for a total of 17 billion cells.
Welcome to the board.

Try
=IF(H12<-5,"below",IF(H12>5,"above","in line"))
 
Upvote 0
Thank you soooooooo much !!!
Id it possible to apply a colour to each e.g. in line is blue, below is red etc?
or would I have to use a conditional format to do this?

Huge thanks
 
Upvote 0
Glad to help, thanks for the feedback.

Yes, You need conditional formatting for that..
 
Upvote 0
Just having one small problem , it seems to be showing "in line" for everything
any help - greatly appreciated
thanks
 
Upvote 0
Just having one small problem , it seems to be showing "in line" for everything
any help - greatly appreciated
thanks

That would mean all your numbers are between (and including) -5 and 5

Are you sure your numbers are whole numbers and not decimals?
Are they perhaps 0.xx ?
 
Upvote 0
They were % - I forgot to mention that :eek:!
I've put the % sign in and it works! - big thank you it will save me hours of work ;)
 
Upvote 0

Forum statistics

Threads
1,214,650
Messages
6,120,736
Members
448,988
Latest member
BB_Unlv

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