nested If statements

jsp33

New Member
Joined
Aug 31, 2018
Messages
12
Office Version
  1. 365
Platform
  1. Windows
I am trying to create a spreadsheet that will calculate mileage, example below. I want it to return a "-" if the mileage is waived, if the attendance cell is blank, or if the attendance cell is "N". If attendance is "Y", I want it to calculate the mileage. I am getting a 'false' response instead of the hyphen or a dollar amount. Where am I going wrong? In this example, $D$2 is where I have my mileage reimbursement rate parked.

Column CColumn DColumn EColumn FColumn GColumn H
MilesTollsRSVPAttendedPayableMileage
504.00Y
=IF(H2="waived","-",IF(F2=" ","-",IF(F2="N","-",IF(F2="Y",(C2*$D$2)+D2))))​
waived
302.00NPay - check
80Pay - Check
60Ywaived
 

Excel Facts

Excel Joke
Why can't spreadsheets drive cars? They crash too often!
How about
Excel Formula:
=if(h2="waived","-",if(f2="y",(C2*$D$2)+D2,"-"))
 
Upvote 0
Glad we could help & thanks for the feedback.
 
Upvote 0

Forum statistics

Threads
1,215,095
Messages
6,123,072
Members
449,093
Latest member
ripvw

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