Multiple IFs/AND scenario

mleahm77

New Member
Joined
Oct 11, 2024
Messages
2
Office Version
  1. 365
Platform
  1. Windows
I need help with creating 2 formulas for the sheet pictured (I typed the info that I want momentarily, however, I need a formula to generate it in the future).
1728661101429.png


First, I need a formula that will look at G26 & K26 and place text in U30 based on the value in G26 & K26. I know what I want to do, but I do not know how to write the formula. I need the text "Average" to generate IF both G26 & K26 are less than an 8.0. IF G26 is an 8.0 and K26 is less than 8.0 I need the word to change to "Math Only". IF G26 is less than 8.0 and K26 is 8.0 I need the word to change to "Reading Only".

Second, I need a formula for Y30 to add 1.0 to the Average of G26 & K26 (already calculated in N26) if Both G26 & K26 are less than 8.0. IF G26 is an 8.0 then I only need to add 1.0 to K26, IF K26 is an 8.0 then I only need to add 1.0 to G26.

I hope this makes sense. Any and all help would be greatly appreciated.
 

Excel Facts

Lock one reference in a formula
Need 1 part of a formula to always point to the same range? use $ signs: $V$2:$Z$99 will always point to V2:Z99, even after copying
Welcome to the Board!

You can do what you want with nested IF statements and the AND function.
So your first formula should look something like this:
=IF(AND(G26<8,K26<8),"Average",IF(AND(G26=8,K26<8),"Math Only",IF(AND(G26<8,K26=8),"Reading Only","No Conditions Met")))

See here for more details on nested IF statements: IF function – nested formulas and avoiding pitfalls - Microsoft Support

Using this example and knowledge, you should be able to do the same for your second function.
Try it out and see how you do, it will be a good test!
If you run into any issues, post back and show us the formula you tried.
 
Upvote 0
Hello!
Book1.xlsm
GHIJKLMNOPQRSTUVWXY
2658
27
28
29
30Reading Only9
Sheet9
Cell Formulas
RangeFormula
U30U30=IF(AND($G$26<8,$K$26<8),"Average",IF(AND($G$26=8,$K$26<8),"Math Only",IF(AND($G$26<8,$K$26=8),"Reading Only","")))
Y30Y30=IF(AND($G$26<8,$K$26<8),AVERAGE($G$26,$K$26)+1,IF(AND($G$26=8,$K$26<8),$G$26+1,IF(AND($G$26<8,$K$26=8),$K$26+1,"")))
 
Upvote 0
Welcome to the Board!

You can do what you want with nested IF statements and the AND function.
So your first formula should look something like this:
=IF(AND(G26<8,K26<8),"Average",IF(AND(G26=8,K26<8),"Math Only",IF(AND(G26<8,K26=8),"Reading Only","No Conditions Met")))

See here for more details on nested IF statements: IF function – nested formulas and avoiding pitfalls - Microsoft Support

Using this example and knowledge, you should be able to do the same for your second function.
Try it out and see how you do, it will be a good test!
If you run into any issues, post back and show us the formula you tried.
Thank you!!!! I got it to work!
 
Upvote 0
Excellent!
You are welcome.
 
Upvote 0

Forum statistics

Threads
1,224,814
Messages
6,181,121
Members
453,021
Latest member
Justyna P

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