Combining Logical Statements Into One Formulax

meppwc

Well-known Member
Joined
May 16, 2003
Messages
626
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

Convert text numbers to real numbers
Select a column containing text numbers. Press Alt+D E F to quickly convert text to numbers. Faster than "Convert to Number"
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,223,879
Messages
6,175,145
Members
452,615
Latest member
bogeys2birdies

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