IF formula with multiple conditions

emmamarycole

New Member
Joined
Jun 13, 2023
Messages
1
Office Version
  1. 365
Platform
  1. Windows
Hi there! I’m trying to figure out a formula that will return either “Match”, “Underpaid”, “Overpaid”. If the 2 values (B16 for amt paid and B34 for amt owed) are within 10.0 of each other, I want it to output “close enough”. Currently, I have it so only when B16=B34 it returns “Match”. Is there a formula to add this last output to the cell?

Here is the formula I have currently:
=IF(B16=B34, “Match”, IF(B34>B16, “Underpaid”, IF(B34<B16, “Overpaid”)))
 

Excel Facts

Easy bullets in Excel
If you have a numeric keypad, press Alt+7 on numeric keypad to type a bullet in Excel.
Welcome to the Board!

Try:
Excel Formula:
=IF(B16=B34,"Match",IF(ABS(B16-B34)<10,"Close Enough",IF(B34>B16,"Underpaid",IF(B34<B16,"Overpaid"))))
 
Upvote 0
@Joe4's formula may possible work with out the last IF, since B34<B16 is the only alternative after the first 3 tests, it need not be explicit.

Excel Formula:
=IF(B16=B34,"Match",IF(ABS(B16-B34)<10,"Close Enough",IF(B34>B16,"Underpaid","Overpaid")))
 
Upvote 0

Forum statistics

Threads
1,215,149
Messages
6,123,311
Members
449,095
Latest member
Chestertim

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