Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
Tom Hewitt
 
Posts: n/a
Default Sum/Count Multiple columns

Help!

I'm trying to get a formula that will work out the following, without
inserting any new columns on sheets I'm looking at.

I Need to Sum and count when

Column B = "Ongoing"
Column D = (This is variour different types of customer)

The column I need totalled is Column K.

It also needs counting so I can work out what the average order interval is.

I can get it to work if I add another column which uses B&D, together. But
Ideal I want a sep formula to work it out.

Any Ideas?
  #2   Report Post  
Posted to microsoft.public.excel.misc
 
Posts: n/a
Default Sum/Count Multiple columns

Hi

Try something like this to SUM:
=SUMPRODUCT((B2:B1000="Ongoing")*(D2:D1000="Whatev er")*(K2:K1000))
and this to count:
=SUMPRODUCT((B2:B1000="Ongoing")*(D2:D1000="Whatev er"))

You cannot use full columns in SUMPRODUCT and the ranges must be the same
size.

Hope this helps.
Andy.

"Tom Hewitt" wrote in message
...
Help!

I'm trying to get a formula that will work out the following, without
inserting any new columns on sheets I'm looking at.

I Need to Sum and count when

Column B = "Ongoing"
Column D = (This is variour different types of customer)

The column I need totalled is Column K.

It also needs counting so I can work out what the average order interval
is.

I can get it to work if I add another column which uses B&D, together.
But
Ideal I want a sep formula to work it out.

Any Ideas?



  #3   Report Post  
Posted to microsoft.public.excel.misc
Tom Hewitt
 
Posts: n/a
Default Sum/Count Multiple columns

Brilliant!!

Works fantastic. Didn't realise you couldnt use full columns in sumproduct!

thanks for your help


"AndyB" wrote:

Hi

Try something like this to SUM:
=SUMPRODUCT((B2:B1000="Ongoing")*(D2:D1000="Whatev er")*(K2:K1000))
and this to count:
=SUMPRODUCT((B2:B1000="Ongoing")*(D2:D1000="Whatev er"))

You cannot use full columns in SUMPRODUCT and the ranges must be the same
size.

Hope this helps.
Andy.

"Tom Hewitt" wrote in message
...
Help!

I'm trying to get a formula that will work out the following, without
inserting any new columns on sheets I'm looking at.

I Need to Sum and count when

Column B = "Ongoing"
Column D = (This is variour different types of customer)

The column I need totalled is Column K.

It also needs counting so I can work out what the average order interval
is.

I can get it to work if I add another column which uses B&D, together.
But
Ideal I want a sep formula to work it out.

Any Ideas?




  #4   Report Post  
Posted to microsoft.public.excel.misc
 
Posts: n/a
Default Sum/Count Multiple columns

Thanks for the feedback!

Andy.

"Tom Hewitt" wrote in message
...
Brilliant!!

Works fantastic. Didn't realise you couldnt use full columns in
sumproduct!

thanks for your help


"AndyB" wrote:

Hi

Try something like this to SUM:
=SUMPRODUCT((B2:B1000="Ongoing")*(D2:D1000="Whatev er")*(K2:K1000))
and this to count:
=SUMPRODUCT((B2:B1000="Ongoing")*(D2:D1000="Whatev er"))

You cannot use full columns in SUMPRODUCT and the ranges must be the same
size.

Hope this helps.
Andy.

"Tom Hewitt" wrote in message
...
Help!

I'm trying to get a formula that will work out the following, without
inserting any new columns on sheets I'm looking at.

I Need to Sum and count when

Column B = "Ongoing"
Column D = (This is variour different types of customer)

The column I need totalled is Column K.

It also needs counting so I can work out what the average order
interval
is.

I can get it to work if I add another column which uses B&D, together.
But
Ideal I want a sep formula to work it out.

Any Ideas?






  #5   Report Post  
Posted to microsoft.public.excel.misc
Tom Hewitt
 
Posts: n/a
Default Sum/Count Multiple columns

Andy,

While the formula works. For some reason it doesnt on all the tabs I'm
looking at. I have 12 tabs named Jan, Feb, Mar etc

The formulas work on Jan, Feb, Jun, Jul, Dec

But dont work on any of the other tabs.

Cheers

"AndyB" wrote:

Hi

Try something like this to SUM:
=SUMPRODUCT((B2:B1000="Ongoing")*(D2:D1000="Whatev er")*(K2:K1000))
and this to count:
=SUMPRODUCT((B2:B1000="Ongoing")*(D2:D1000="Whatev er"))

You cannot use full columns in SUMPRODUCT and the ranges must be the same
size.

Hope this helps.
Andy.

"Tom Hewitt" wrote in message
...
Help!

I'm trying to get a formula that will work out the following, without
inserting any new columns on sheets I'm looking at.

I Need to Sum and count when

Column B = "Ongoing"
Column D = (This is variour different types of customer)

The column I need totalled is Column K.

It also needs counting so I can work out what the average order interval
is.

I can get it to work if I add another column which uses B&D, together.
But
Ideal I want a sep formula to work it out.

Any Ideas?






  #6   Report Post  
Posted to microsoft.public.excel.misc
 
Posts: n/a
Default Sum/Count Multiple columns

Hi Tom

What do you mean by 'dont work'? Do you get an error, a zero, or what?

Andy.

"Tom Hewitt" wrote in message
...
Andy,

While the formula works. For some reason it doesnt on all the tabs I'm
looking at. I have 12 tabs named Jan, Feb, Mar etc

The formulas work on Jan, Feb, Jun, Jul, Dec

But dont work on any of the other tabs.

Cheers

"AndyB" wrote:

Hi

Try something like this to SUM:
=SUMPRODUCT((B2:B1000="Ongoing")*(D2:D1000="Whatev er")*(K2:K1000))
and this to count:
=SUMPRODUCT((B2:B1000="Ongoing")*(D2:D1000="Whatev er"))

You cannot use full columns in SUMPRODUCT and the ranges must be the same
size.

Hope this helps.
Andy.

"Tom Hewitt" wrote in message
...
Help!

I'm trying to get a formula that will work out the following, without
inserting any new columns on sheets I'm looking at.

I Need to Sum and count when

Column B = "Ongoing"
Column D = (This is variour different types of customer)

The column I need totalled is Column K.

It also needs counting so I can work out what the average order
interval
is.

I can get it to work if I add another column which uses B&D, together.
But
Ideal I want a sep formula to work it out.

Any Ideas?






  #7   Report Post  
Posted to microsoft.public.excel.misc
Tom Hewitt
 
Posts: n/a
Default Sum/Count Multiple columns

Sorry,

I get a #DIV/0! error, but only on some of the months in one of the files.
So far as i can tell the tabs are all the same, nothing is different on them

"AndyB" wrote:

Hi Tom

What do you mean by 'dont work'? Do you get an error, a zero, or what?

Andy.

"Tom Hewitt" wrote in message
...
Andy,

While the formula works. For some reason it doesnt on all the tabs I'm
looking at. I have 12 tabs named Jan, Feb, Mar etc

The formulas work on Jan, Feb, Jun, Jul, Dec

But dont work on any of the other tabs.

Cheers

"AndyB" wrote:

Hi

Try something like this to SUM:
=SUMPRODUCT((B2:B1000="Ongoing")*(D2:D1000="Whatev er")*(K2:K1000))
and this to count:
=SUMPRODUCT((B2:B1000="Ongoing")*(D2:D1000="Whatev er"))

You cannot use full columns in SUMPRODUCT and the ranges must be the same
size.

Hope this helps.
Andy.

"Tom Hewitt" wrote in message
...
Help!

I'm trying to get a formula that will work out the following, without
inserting any new columns on sheets I'm looking at.

I Need to Sum and count when

Column B = "Ongoing"
Column D = (This is variour different types of customer)

The column I need totalled is Column K.

It also needs counting so I can work out what the average order
interval
is.

I can get it to work if I add another column which uses B&D, together.
But
Ideal I want a sep formula to work it out.

Any Ideas?






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
using functions to compare multiple columns for mismatch of cells MDIAZ451 Excel Worksheet Functions 3 February 13th 06 02:49 AM
making multiple columns when printing long datasheet Piet Excel Discussion (Misc queries) 1 November 11th 05 04:00 AM
Justify text across multiple columns fins2r Excel Discussion (Misc queries) 4 October 26th 05 05:07 PM
Pivot Table combining multiple columns Pete Petersen Excel Discussion (Misc queries) 1 January 13th 05 07:56 PM
HOW TO MATCH MULTIPLE COLUMNS WITH OR WITHOUT GAPS IN eXCEL ? hims Excel Worksheet Functions 2 October 27th 04 07:03 PM


All times are GMT +1. The time now is 04:23 AM.

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

About Us

"It's about Microsoft Excel"