#1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 22
Default Formula needed

I have a spreadsheet with about 20 columns in it. I want to take the dollar
amounts of column T that have the same batch number in Column R and make a
sum of the numbers in Column T that have the same batch number in Column R.
Does anyone have any idea how I can do this?
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 11,501
Default Formula needed

Try this

=SUMPRODUCT((R1:R20=Q1)*(T1:T20))

Where Q1 is the batch number you want the sum of.

Mike

"Seth" wrote:

I have a spreadsheet with about 20 columns in it. I want to take the dollar
amounts of column T that have the same batch number in Column R and make a
sum of the numbers in Column T that have the same batch number in Column R.
Does anyone have any idea how I can do this?

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 22
Default Formula needed

Mike,
That didn't work the batch numbers in column R are different. There maybe
any where from 1 to 20 amounts that have the same batch number on about 500
rows. Is there a way of doing the formula in a new column to show the total
for each batch number?

"Mike H" wrote:

Try this

=SUMPRODUCT((R1:R20=Q1)*(T1:T20))

Where Q1 is the batch number you want the sum of.

Mike

"Seth" wrote:

I have a spreadsheet with about 20 columns in it. I want to take the dollar
amounts of column T that have the same batch number in Column R and make a
sum of the numbers in Column T that have the same batch number in Column R.
Does anyone have any idea how I can do this?

  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 964
Default Formula needed

Create a list of each unique batch number, you can do that by making sure
you have a header in column R and then select header and all the batch
numbers, do datafilteradvanced filter, select unique records only and then
copy to another location, assume you copy it to U1 that will put the header
in U1 and all the unique entries below. Then in cell V2 adjacent to U2 put

=SUMPRODUCT(--($R$2:$R$200=U2),$T$2:$T$200)

that will give you the totals for what's in U2, now copy down the formula
as long as needed.
It will change to



=SUMPRODUCT(--($R$2:$R$200=U3),$T$2:$T$200)


=SUMPRODUCT(--($R$2:$R$200=U4),$T$2:$T$200)


and so on



Or you can copy column R and Column T to another sheet
next to each other, put headers above them unless they already have that.
Select both columns and sort by the batch numbers so you group them
then apply datasubtotals, it will probably default to sum former T for each
change in former
R.



--


Regards,


Peo Sjoblom

"Seth" wrote in message
...
Mike,
That didn't work the batch numbers in column R are different. There maybe
any where from 1 to 20 amounts that have the same batch number on about
500
rows. Is there a way of doing the formula in a new column to show the
total
for each batch number?

"Mike H" wrote:

Try this

=SUMPRODUCT((R1:R20=Q1)*(T1:T20))

Where Q1 is the batch number you want the sum of.

Mike

"Seth" wrote:

I have a spreadsheet with about 20 columns in it. I want to take the
dollar
amounts of column T that have the same batch number in Column R and
make a
sum of the numbers in Column T that have the same batch number in
Column R.
Does anyone have any idea how I can do this?



Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Formula needed please... Fergal[_2_] New Users to Excel 4 May 11th 08 10:43 PM
Formula Needed AshMorK Excel Discussion (Misc queries) 0 January 30th 08 06:09 PM
Sum formula needed Zilla Excel Discussion (Misc queries) 2 February 28th 07 01:03 AM
Formula Needed Cheryl Garst Excel Discussion (Misc queries) 3 September 1st 06 07:53 PM
Formula needed Excel Worksheet Functions 2 November 25th 05 05:07 PM


All times are GMT +1. The time now is 03:35 PM.

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

About Us

"It's about Microsoft Excel"