formula help

eherring

New Member
Joined
Aug 9, 2011
Messages
3
In cell H 19 I need to obtain the SUM of cells H16:H18. Cell H18 is a form control checkbox and contains the formula =IF(N18=TRUE, "$390.00", "$0.00").

If I enter the formula {=SUM(IF(N$18=TRUE,H16:H18, "0"))} in cell H19 it only calculates cells H16 and H17.

Thanks
 

Excel Facts

Convert text numbers to real numbers
Select a column containing text numbers. Press Alt+D E F to quickly convert text to numbers. Faster than "Convert to Number"
In cell H 19 I need to obtain the SUM of cells H16:H18. Cell H18 is a form control checkbox and contains the formula =IF(N18=TRUE, "$390.00", "$0.00").

If I enter the formula {=SUM(IF(N$18=TRUE,H16:H18, "0"))} in cell H19 it only calculates cells H16 and H17.

Thanks

Does modifying

=IF(N18=TRUE, "$390.00", "$0.00")

to

=IF(N18=TRUE, 390, 0)

help?
 
Upvote 0
that doesn't work for the false, but it gave me an idea

{=SUM(IF(N$18=TRUE,H16+H17+390, H16+H17))} works for true or false

thanks!!!
 
Upvote 0
that doesn't work for the false, but it gave me an idea

{=SUM(IF(N$18=TRUE,H16+H17+390, H16+H17))} works for true or false

thanks!!!

=IF(N18=TRUE, 390, 0)

was meant for H18.

Although a bit unclear (to me) where you are heading, wouldn't the following regular formula

=SUM(H16:H17,IF(N$18, 390, 0))

cover the same as the one you post above?
 
Upvote 0
=IF(N18=TRUE, 390, 0)

was meant for H18.

Although a bit unclear (to me) where you are heading, wouldn't the following regular formula

=SUM(H16:H17,IF(N$18, 390, 0))

cover the same as the one you post above?


=SUM(H16:H17,IF(N$18, 390, 0)) worked also. Thanks for the input! All of the formulas in my form are calculating correctly!!
 
Upvote 0

Forum statistics

Threads
1,224,507
Messages
6,179,176
Members
452,893
Latest member
denay

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