VLOOKUP and IF Formula Question

thekgbjr

New Member
Joined
Jan 18, 2011
Messages
13
=IF(F6="Companion",(E6*1440)*(G6/60),G6),IF(F6="CNA",(E6*1440)*(G6/60),G6),IF(F6="Home Health Aide",(E6*1440)*(G6/60),G6)

That is the formula, I am creating an invoice with drop down boxes using data validation. The invoice contains many different services most of which are just a flat fee. The services provided by the CNA, Companion and home health aide are hourly.
When I click the drop down box and select, fir instance, "Companion" I need it to calculate the hourly rate to the minute and multiply it by the number of minutes worked. If I select anything other than the CNA, Companion or Home Health Aide, I just want it to show the flat fee with no calculation.

In the formula above, the first section worked fine, when I added the additional IF statements it gives me the #VALUE Error and no longer works.

Any ideas?
 

Excel Facts

Why does 9 mean SUM in SUBTOTAL?
It is because Sum is the 9th alphabetically in Average, Count, CountA, Max, Min, Product, StDev.S, StDev.P, Sum, VAR.S, VAR.P.
you only need the G6 bit once, ie. if all of your conditions are false.

=IF(F6="Companion",(E6*1440)*(G6/60),IF(F6="CNA",(E6*1440)*(G6/60),IF(F6="Home Health Aide",(E6*1440)*(G6/60),G6)))
 
Upvote 0
You're using too many arguments:

=IF(F6="Companion",(E6*1440)*(G6/60),IF(F6="CNA",(E6*1440)*(G6/60),IF(F6="Home Health Aide",(E6*1440)*(G6/60),G6)))
 
Upvote 0
Try the following:

=IF(F15="Companion",(E6*1440)*(G6/60),IF(F6="CNA",(E6*1440)*(G6/60),IF(F6="Home Health Aide",(E6*1440)*(G6/60),G6)))
 
Upvote 0

Forum statistics

Threads
1,224,599
Messages
6,179,828
Members
452,946
Latest member
JoseDavid

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