Combining Logical Statements Into One Formulax

meppwc

Well-known Member
Joined
May 16, 2003
Messages
604
Office Version
  1. 365
Platform
  1. Windows
Is there a way of combining all of the statements below into one formula?

IF A2 EQUALS "RANDOM" AND F2 IS LESS THAN 126, THEN "NORMAL"
IF A2 EQUALS "RANDOM" AND F2 IS GREATER THAN 125 AND LESS THAN 200, THEN "PREDIABETES"
IF A2 EQUALS "RANDOM" AND F2 IS GREATER THAN 199, THEN "DIABETES"
IF A2 EQUALS "FASTING" AND F2 IS LESS THAN 101, THEN "NORMAL"
IF A2 EQUALS "FASTING" AND F2 IS GREATER THAN 100 AND LESS THAN 126, THEN "PREDIABETES"
IF A2 EQUALS "FASTING" AND F2 IS GREATER THAN 126, THEN "DIABETES"
 

Excel Facts

Difference between two dates
Secret function! Use =DATEDIF(A2,B2,"Y")&" years"&=DATEDIF(A2,B2,"YM")&" months"&=DATEDIF(A2,B2,"MD")&" days"
How about
=IF(A2="Random",IF(F2<126,"Normal",IF(F2<200,"Prediabetes","Diabetes")),IF(A2="Fasting",IF(F2<101,"Normal",IF(F2<126,"prdiabetes","Diabetes")),""))
 
Upvote 0
Thank you Fluff...............I envy people like you so much.............I really wish there was an Excel Formula course out there............I know what I want/need but cannot figure out how to get it alot of times.
 
Upvote 0
You're welcome & thanks for the feedback
 
Upvote 0

Forum statistics

Threads
1,213,565
Messages
6,114,338
Members
448,569
Latest member
Honeymonster123

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