Need Help Pasting Formulas

rdenzil

New Member
Joined
Jan 13, 2004
Messages
5
I used the conditional sum wizard to create a formula. The formula uses absolute values ($). When I copy/paste the formula to a new cell, it copies just fine, but when I make a minor change in the formula it returns #VALUE!.

This is my formula: =SUM(IF($B$6:$B$58>=DATEVALUE("01/05/2004"),IF($B$6:$B$58<=DATEVALUE("01/09/2004"),IF($D$6:$D$58="P",$E$6:$E$58,0),0),0))

If I copy/paste this to a new cell and change one of the dates, or "p" to another constraint it returns #VALUE!.

Hope you can help.
Thanks!
-RJ
 

Excel Facts

Excel Joke
Why can't spreadsheets drive cars? They crash too often!
rdenzil said:
I used the conditional sum wizard to create a formula. The formula uses absolute values ($). When I copy/paste the formula to a new cell, it copies just fine, but when I make a minor change in the formula it returns #VALUE!.

This is my formula: =SUM(IF($B$6:$B$58>=DATEVALUE("01/05/2004"),IF($B$6:$B$58<=DATEVALUE("01/09/2004"),IF($D$6:$D$58="P",$E$6:$E$58,0),0),0))

If I copy/paste this to a new cell and change one of the dates, or "p" to another constraint it returns #VALUE!.

Hope you can help.
Thanks!
-RJ

It should be entered as an array formula, be careful when copying and pasting that the {} are entered by Excel.

you can also use,

=SUMPRODUCT(--(B6:B58>=A1),--(B6:B58<=A2),--(D6:D58="P"),E6:E58)

Where A1 and A2 houses dates of interest and entered normally.
 
Upvote 0

Forum statistics

Threads
1,203,744
Messages
6,057,118
Members
444,906
Latest member
NanaExcel

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