A less complicated Multiple IF Statement

nutrijenna

New Member
Joined
Feb 8, 2019
Messages
1
Hi,


I'm wondering if we can make this Multiple IF Statement a less complicated one.


=if(J2="Free Minutes - New Client/Welcome Email",0,
if(J2="Free Minutes - Payoff/Bonus", 0,
if(J2="Internal - Not Billed",0,
if(J2="Billed Minutes - Peak", H2*0.25,
if(J2="Billed Minutes - Off-Peak", H2*0.38,
if(J2="Pre-Task Activities", 0,
if(J2="Admin",0
)))))))


Thanks in advance!!!
 

Excel Facts

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

Gerald Higgins

Well-known Member
Joined
Mar 26, 2007
Messages
9,115
Hi, welcome to the board.

There are lots of ways of simplifying this.

Here's one . . .
=((RIGHT(J2,4)="Peak")*H2*0.25)+((RIGHT(J2,8)="Off-Peak")*H2*0.13)
 

Fluff

MrExcel MVP, Moderator
Joined
Jun 12, 2014
Messages
57,030
Office Version
  1. 365
Platform
  1. Windows
Another option, like
=IF(OR(J2={"Free Minutes - New Client/Welcome Email","Free Minutes - Payoff/Bonus","Internal - Not Billed","Pre-Task Activities","Admin"}),0,IF(J2="Billed Minutes - Peak", H2*0.25,IF(J2="Billed Minutes - Off-Peak", H2*0.38,"")))
 

Watch MrExcel Video

Forum statistics

Threads
1,130,447
Messages
5,642,209
Members
417,262
Latest member
andrewd1

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
Top