Solved

How sumproduct & counta with a twist?

Posted on 2014-04-26
6
341 Views
Last Modified: 2014-04-27
I need a macro that would do the following:
Look in column A and make list of all "Products" listing just the first "Serial" number.
Then sum all three "TYPE"...MX, SX and HX.

I have attached a file to better explain.
Jimi
sumproduct---counta-with-a-twist.xlsx
0
Comment
Question by:Jimi Sherman
  • 3
  • 2
6 Comments
 
LVL 39

Expert Comment

by:als315
ID: 40025375
You can do it with pivot table (just hide some columns and First Serial Number is minimum)
sumproduct---counta-with-a-twist.xlsx
0
 
LVL 22

Expert Comment

by:Flyster
ID: 40025384
You can use COUNTIFS for those results. The formula in G2 would be:

=COUNTIFS(A:A,$E2,C:C,G$1)

Flyster
sumproduct---counta-with-a-twist.xlsx
0
 

Author Comment

by:Jimi Sherman
ID: 40025385
A pivot table will not work for what I doing. The worksheet will change daily and this is only one part of a bigger process I am putting together.
0
What Should I Do With This Threat Intelligence?

Are you wondering if you actually need threat intelligence? The answer is yes. We explain the basics for creating useful threat intelligence.

 

Author Comment

by:Jimi Sherman
ID: 40025388
Hi Flyster,
But what about this part...making list of all "Products" listing just the first "Serial" number?
0
 
LVL 22

Accepted Solution

by:
Flyster earned 500 total points
ID: 40025415
Took a little time for this one. For the List, you can use this formula:

=INDEX($B$2:$B$38, MATCH(0, COUNTIF($F$1:F1, $B$2:$B$38), 0))

To list the first serial number, I added a column which counts the number of occurrences of each product. You can hide it.  Then for serial number you use this:

=SUMPRODUCT((B2:B38=$F2)*(A2:A38=1)*(C2:C38))
sumproduct---counta-with-a-twist.xlsx
0
 

Author Closing Comment

by:Jimi Sherman
ID: 40026248
That will work. Thanks
0

Featured Post

Free Trending Threat Insights Every Day

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

Introduction This Article briefly covers methods of calculating the NPV and IRR variants in Excel as well as the limitations in calculating and interpreting IRR results. Paraphrasing Richard Shockley, author of my favourite finance reference tex…
How to quickly and accurately populate Word documents with Excel data, charts and images (including Automated Bookmark generation) David Miller (dlmille) Synopsis In this article you’ll learn how to use ExcelToWord! to copy data,charts, shapes …
This Micro Tutorial will demonstrate on a Mac how to change the sort order for chart legend values and decrpyt the intimidating chart menu.
Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…

707 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now