IF statements with a text return value based on range

gggmarquez

New Member
Joined
May 10, 2016
Messages
3
Hi there EXCEL Gods ! Of course any help is greatly appreciated.

I need the formula to return specific text values looking at G28 to look at P28
Out to the side I’ve provided what return text should be:

If P28 is greater G28 =”Level One”
If P28 is equal to zero = “Level two”
If P28 is equal to -1 or has a negative value and is equal to but not less than G28 = “Level 3”
If p28 is less than g28= “Level 4”

I tried to put an image in but it's looking for a URL. I am work and it won't allow me to differents sites. I hope this provides enough information


 

Excel Facts

What do {} around a formula in the formula bar mean?
{Formula} means the formula was entered using Ctrl+Shift+Enter signifying an old-style array formula.
I need the formula to return specific text values looking at G28 to look at P28
Out to the side I’ve provided what return text should be:

If P28 is greater G28 =”Level One”
If P28 is equal to zero = “Level two”
If P28 is equal to -1 or has a negative value and is equal to but not less than G28 = “Level 3”
If p28 is less than g28= “Level 4”
Can you explain the highlighted condition in a little more detail? I am confused by your wording "or has a negative value and is equal to but not less than G28".

Also, did you really want a mix of text numbers ("One" and "two") and digits (3 and 4) for your levels?
 
Last edited:
Upvote 0
Hi there EXCEL Gods ! Of course any help is greatly appreciated.

I need the formula to return specific text values looking at G28 to look at P28
Out to the side I’ve provided what return text should be:

If P28 is greater G28 =”Level One”
If P28 is equal to zero = “Level two”
If P28 is equal to -1 or has a negative value and is equal to but not less than G28 = “Level 3”
If p28 is less than g28= “Level 4”

I tried to put an image in but it's looking for a URL. I am work and it won't allow me to differents sites. I hope this provides enough information


 
Upvote 0
Would have been helpful if you had provided a small sample of your data and desired results. This might be what you need...

PHP:
="Level "&IF(P28>G28,"One",IF(G28=0,"Two",IF(OR(P28=-1,(AND(P28<0,P28=G28))),"Three",IF(P28<G28,"Four"))))
 
Last edited:
Upvote 0

Forum statistics

Threads
1,224,827
Messages
6,181,194
Members
453,021
Latest member
pingpong7117

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