New to excel and learning, need guidance.

HPGiroux

New Member
Joined
Feb 19, 2024
Messages
9
Office Version
  1. 365
Platform
  1. Windows
Hi everyone!

I thought I had found the right formula, but I clearly have not. I'm looking for the following: If H5 (% result) is equal to or greater than 80% and equal to or less than 84%, give it 5 points, If H5 is equal to or greater than 85% and equal to or less than 89%, give it 15 points and if it's equal to or greater than 90%, give it 20 points. My current formula just reads false no matter the result in H5. Could you please tell me where I'm going wrong? or what formula to look at?

Current formula: =IF(AND(H5>=0.8, M7<=0.84), "5",IF(AND(H5>=0.85, H5<=0.89), "15",IF(H5>=0.9,"20")))

Thank you in advance for any help!

Sincerely,

Hollie
 

Excel Facts

Which lookup functions find a value equal or greater than the lookup value?
MATCH uses -1 to find larger value (lookup table must be sorted ZA). XLOOKUP uses 1 to find values greater and does not need to be sorted.
Welcome to the Board!

What exactly do the values in H5 look like?

Are they entered as Text or Numbers?

What does this formula return?
Excel Formula:
=ISNUMBER(H5)

Also, if you want to return the numeric values of 5, 15, and 20 and NOT text values, remove the double-quotes from around those numbers in your formula.
 
Upvote 0
You know... I'm silly. I just found what I did and it wasn't until I reread my post... Lol. It's working now, but if there is a better way, please let me know!

=IF(AND(H5>=0.8, H5<=0.84), "5",IF(AND(H5>=0.85, H5<=0.89), "15",IF(H5>=0.9,"20"))) ... this works

H5 formula is =SUM(F5/E5) (in image)

=ISNUMBER(H5) comes back as True
 

Attachments

  • Screenshot 2024-02-19 101427.png
    Screenshot 2024-02-19 101427.png
    16.4 KB · Views: 5
Upvote 0
Welcome to the Board!

What exactly do the values in H5 look like?

Are they entered as Text or Numbers?

What does this formula return?
Excel Formula:
=ISNUMBER(H5)

Also, if you want to return the numeric values of 5, 15, and 20 and NOT text values, remove the double-quotes from around those numbers in your formula.
I spoke too soon. It works until my result is 85% or more then it doesn't give it the value of 15, it gives 5
 
Upvote 0
H5 formula is =SUM(F5/E5)
Just use:
Excel Formula:
=F5/E5
The SUM portion of this formula is doing nothing, and can be removed. You aren't adding anything.

Also note that in your original formula, you have not told it what to return if none of your conditions are met, which is why it returns FALSE.
If you want to return nothing if no conditions are met, you can use:
Excel Formula:
=IF(AND(H5>=0.8,H7<=0.84),5,IF(AND(H5=0.85,H5<=0.89),15,IF(H5>=0.9,20,"")))

Are you still having any issues?
 
Upvote 0
Just use:
Excel Formula:
=F5/E5
The SUM portion of this formula is doing nothing, and can be removed. You aren't adding anything.

Also note that in your original formula, you have not told it what to return if none of your conditions are met, which is why it returns FALSE.
If you want to return nothing if no conditions are met, you can use:
Excel Formula:
=IF(AND(H5>=0.8,H7<=0.84),5,IF(AND(H5=0.85,H5<=0.89),15,IF(H5>=0.9,20,"")))

Are you still having any issues?
Thank you! I entered the formula and it's currently giving false even though H5 is 85%

=IF(AND(H5>=0.8,H5<=0.84),5,IF(AND(H5>=0.85,H5<=0.89),15,IF(H5>=0.9,20,"FALSE")))
 
Upvote 0
It is almost certainly due to rounding. Even though you may only show two decimals, Excel remembers all of them.
Try changing your formula from:
Excel Formula:
=F5/E5
to:
Excel Formula:
=ROUND(F5/E5,2)
and I think it will take care of your issue.
 
Upvote 0
It is almost certainly due to rounding. Even though you may only show two decimals, Excel remembers all of them.
Try changing your formula from:
Excel Formula:
=F5/E5
to:
Excel Formula:
=ROUND(F5/E5,2)
and I think it will take care of your issue.
Thank you so much!!
 
Upvote 0
Now another thing that was previously seeming working that now is not: I need the yellow cell to calculate the numbers that populate.
 

Attachments

  • Screenshot 2024-02-19 105919.png
    Screenshot 2024-02-19 105919.png
    6.4 KB · Views: 8
Upvote 0

Forum statistics

Threads
1,223,904
Messages
6,175,295
Members
452,631
Latest member
a_potato

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