Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 13
Default Sumproduct and Countif together

Hi

I need to create a formula for the following: - on one sheet i Have a
group of part number

1 123456
6 123456
7 123456
1 456789
3 789123
4 789123

On another sheet I have a table the part numbers, wanting the gross
qty sold over then month

123456 ?
456789 ?
789123 ?

and i need to be about to automatically add them all up at once, and
also (to top it off) leave the cells blank of the parts numbers not
sold.

Can anyone help, my head is spinning :-)

Regards

Linexe

  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 8,856
Default Sumproduct and Countif together

Try this in B1 of Sheet2:

=IF(COUNTIF(Sheet1!B1:B100,A1)=0,"",SUMPRODUCT((Sh eet1!
B1:B100=A1)*(Sheet1!A1:A100)))

Assumes you have 100 items on Sheet1 - adjust to suit.

Hope this helps.

Pete

On Apr 2, 2:56 pm, wrote:
Hi

I need to create a formula for the following: - on one sheet i Have a
group of part number

1 123456
6 123456
7 123456
1 456789
3 789123
4 789123

On another sheet I have a table the part numbers, wanting the gross
qty sold over then month

123456 ?
456789 ?
789123 ?

and i need to be about to automatically add them all up at once, and
also (to top it off) leave the cells blank of the parts numbers not
sold.

Can anyone help, my head is spinning :-)

Regards

Linexe



  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 3,572
Default Sumproduct and Countif together

Say your sales quantity is in Column A of Sheet1, from A1 to A20,and the
part numbers are in Column B, from B1 to B20.

Your datalist of original part numbers are on Sheet2, in Column A.

Enter this formula in B1 of Sheet2:

=IF(ISNA(MATCH(A1,Sheet1!B1:B20,0)),"",SUMIF(Sheet 1!$B$1:$B$20,A1,Sheet1!$A$1:$A$20))

Copy down as needed.
--

HTH,

RD
================================================== ===
Please keep all correspondence within the Group, so all may benefit!
================================================== ===


wrote in message
ups.com...
Hi

I need to create a formula for the following: - on one sheet i Have a
group of part number

1 123456
6 123456
7 123456
1 456789
3 789123
4 789123

On another sheet I have a table the part numbers, wanting the gross
qty sold over then month

123456 ?
456789 ?
789123 ?

and i need to be about to automatically add them all up at once, and
also (to top it off) leave the cells blank of the parts numbers not
sold.

Can anyone help, my head is spinning :-)

Regards

Linexe


  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 8,856
Default Sumproduct and Countif together

You appear to have put quotes within the two sumproduct brackets.
Also, the
ranges have to be the same size - you have one from 5 to 50 and the
other
from 5 to 49. Try this instead:

=IF(COUNTIF(Apr!E5:E50,B5)=0,"",SUMPRODUCT((Apr!E5 :E50=B5)*(Apr!
G5:G50)))

All one formula - watch out for line-wrap.

By the way, I couldn't reply to your email address - it was bounced
back.

Hope this helps.

Pete


Hi Pete

This is what i have come up with, can you see where I might be going
wrong


=IF(COUNTIF(Apr!E5:E50,B5)=0,"",SUMPRODUCT(("Apr!E 5:E50=B5)*(Apr!
G5:G49")))

Thanks

Lindset



On Apr 2, 3:27 pm, "Pete_UK" wrote:
Try this in B1 of Sheet2:

=IF(COUNTIF(Sheet1!B1:B100,A1)=0,"",SUMPRODUCT((Sh eet1!
B1:B100=A1)*(Sheet1!A1:A100)))

Assumes you have 100 items on Sheet1 - adjust to suit.

Hope this helps.

Pete

On Apr 2, 2:56 pm, wrote:



Hi


I need to create a formula for the following: - on one sheet i Have a
group of part number


1 123456
6 123456
7 123456
1 456789
3 789123
4 789123


On another sheet I have a table the part numbers, wanting the gross
qty sold over then month


123456 ?
456789 ?
789123 ?


and i need to be about to automatically add them all up at once, and
also (to top it off) leave the cells blank of the parts numbers not
sold.


Can anyone help, my head is spinning :-)


Regards


Linexe- Hide quoted text -


- Show quoted text -



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
CountIf or sumproduct timmulla Excel Discussion (Misc queries) 1 January 18th 07 03:49 AM
Sumproduct,Countif, I don't Know!!!!! Cobbcouk Excel Worksheet Functions 4 July 27th 06 07:51 PM
COUNTIF or SUMPRODUCT ThomH Excel Discussion (Misc queries) 6 July 12th 06 05:40 PM
Countif or Sumproduct Harley Excel Discussion (Misc queries) 8 December 22nd 05 12:34 AM
SUMPRODUCT & COUNTIF Connie Martin Excel Worksheet Functions 2 December 16th 04 06:53 PM


All times are GMT +1. The time now is 10:33 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"