A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Excel » Worksheet Functions
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Changing conditional sum format to "Sum If"



 
 
Thread Tools Display Modes
  #1  
Old August 27th, 2008, 03:11 PM posted to microsoft.public.excel.worksheet.functions
Gina[_3_]
external usenet poster
 
Posts: 53
Default Changing conditional sum format to "Sum If"

I am currently using

=SUM(IF(Data!$E$2:$E$1700=2467,Data!$Q$2:$Q$1700,0 ))

But I would instead like to reference cell B2 of the current worksheet
rather than typing 2467. The reason being, I'd like to be able to drag this
calculation down, and have the formula in the cell just below reference cell
B3 of the current worksheet, etc.

Are there any sumproduct experts available who could steer me in the right
direction?

Gina
  #2  
Old August 27th, 2008, 03:18 PM posted to microsoft.public.excel.worksheet.functions
Pete_UK
external usenet poster
 
Posts: 8,780
Default Changing conditional sum format to "Sum If"

I think you mean that you want to do this:

=SUMPRODUCT(--(Data!$E$2:$E$1700=$B$2),--(Data!$Q$2:$Q$1700))

No need for CSE when you enter it.

Hope this helps.

Pete

On Aug 27, 3:11*pm, Gina wrote:
I am currently using

=SUM(IF(Data!$E$2:$E$1700=2467,Data!$Q$2:$Q$1700,0 ))

But I would instead like to reference cell B2 of the current worksheet
rather than typing 2467. *The reason being, I'd like to be able to drag this
calculation down, and have the formula in the cell just below reference cell
B3 of the current worksheet, etc.

Are there any sumproduct experts available who could steer me in the right
direction?

Gina


  #3  
Old August 27th, 2008, 03:27 PM posted to microsoft.public.excel.worksheet.functions
Gina[_3_]
external usenet poster
 
Posts: 53
Default Changing conditional sum format to "Sum If"



"Pete_UK" wrote:

I think you mean that you want to do this:

=SUMPRODUCT(--(Data!$E$2:$E$1700=$B$2),--(Data!$Q$2:$Q$1700))

No need for CSE when you enter it.

Hope this helps.

Pete

On Aug 27, 3:11 pm, Gina wrote:
I am currently using

=SUM(IF(Data!$E$2:$E$1700=2467,Data!$Q$2:$Q$1700,0 ))

But I would instead like to reference cell B2 of the current worksheet
rather than typing 2467. The reason being, I'd like to be able to drag this
calculation down, and have the formula in the cell just below reference cell
B3 of the current worksheet, etc.

Are there any sumproduct experts available who could steer me in the right
direction?

Gina




This is exactly what I meant. It returned the same value and worked great.
Thank you.

Gina
  #4  
Old August 27th, 2008, 04:09 PM posted to microsoft.public.excel.worksheet.functions
Pete_UK
external usenet poster
 
Posts: 8,780
Default Changing conditional sum format to "Sum If"

You're welcome, Gina - thanks for feeding back.

Pete

On Aug 27, 3:27*pm, Gina wrote:
"Pete_UK" wrote:
I think you mean that you want to do this:


=SUMPRODUCT(--(Data!$E$2:$E$1700=$B$2),--(Data!$Q$2:$Q$1700))


No need for CSE when you enter it.


Hope this helps.


Pete


On Aug 27, 3:11 pm, Gina wrote:
I am currently using


=SUM(IF(Data!$E$2:$E$1700=2467,Data!$Q$2:$Q$1700,0 ))


But I would instead like to reference cell B2 of the current worksheet
rather than typing 2467. *The reason being, I'd like to be able to drag this
calculation down, and have the formula in the cell just below reference cell
B3 of the current worksheet, etc.


Are there any sumproduct experts available who could steer me in the right
direction?


Gina


This is exactly what I meant. *It returned the same value and worked great. *
Thank you.

Gina- Hide quoted text -

- Show quoted text -


  #5  
Old August 27th, 2008, 05:27 PM posted to microsoft.public.excel.worksheet.functions
David Biddulph
external usenet poster
 
Posts: 8,714
Default Changing conditional sum format to "Sum If"

My reading of the OP's question was that she wanted the B2 to change to B3
when copied downwards, in which case I would have thought not
=SUMPRODUCT(--(Data!$E$2:$E$1700=$B$2),--(Data!$Q$2:$Q$1700))
but
=SUMPRODUCT(--(Data!$E$2:$E$1700=$B2),--(Data!$Q$2:$Q$1700))
--
David Biddulph

"Pete_UK" wrote in message
...
I think you mean that you want to do this:

=SUMPRODUCT(--(Data!$E$2:$E$1700=$B$2),--(Data!$Q$2:$Q$1700))

No need for CSE when you enter it.

Hope this helps.

Pete


On Aug 27, 3:11 pm, Gina wrote:
I am currently using

=SUM(IF(Data!$E$2:$E$1700=2467,Data!$Q$2:$Q$1700,0 ))

But I would instead like to reference cell B2 of the current worksheet
rather than typing 2467. The reason being, I'd like to be able to drag
this
calculation down, and have the formula in the cell just below reference
cell
B3 of the current worksheet, etc.




 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 01:05 AM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.