+ Reply to Thread
Results 1 to 6 of 6

Need formula to total products in a dynamic range based on company name

  1. #1
    Registered User
    Join Date
    08-29-2019
    Location
    Houston, Texas
    MS-Off Ver
    15.41
    Posts
    13

    Need formula to total products in a dynamic range based on company name

    Afternoon,

    I need to figure out how to get a total number of a given product for each company in a large list of products by company.

    I've tried with offset, but I don't know how to define the range to just one company.

    I've attached an excel file that shows what I mean.

    Thanks in advance for your help!

    Blake
    Attached Files Attached Files

  2. #2
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,425

    Re: Need formula to total products in a dynamic range based on company name

    Why not just use a Pivot Table.
    Trevor Shuttleworth - Retired Excel/VBA Consultant

    I dream of a better world where chickens can cross the road without having their motives questioned

    'Being unapologetic means never having to say you're sorry' John Cooper Clarke


  3. #3
    Forum Expert
    Join Date
    02-10-2019
    Location
    Georgia, USA
    MS-Off Ver
    Office 365
    Posts
    2,829

    Re: Need formula to total products in a dynamic range based on company name

    A Pivot Table is a good idea. Also, you could enter this in C2 and copy it down:

    =IF(A2=A3,"",COUNTIFS(A:A,A2,B:B,"Product ABC"))

  4. #4
    Forum Moderator
    Join Date
    01-21-2014
    Location
    St. Joseph, Illinois U.S.A.
    MS-Off Ver
    Office 365 v 2403
    Posts
    13,406

    Re: Need formula to total products in a dynamic range based on company name

    If you don't always know the name of the product maybe a nested LOOKUP in Gregb11's COUNTIFS formula.

    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Dave

  5. #5
    Registered User
    Join Date
    08-29-2019
    Location
    Houston, Texas
    MS-Off Ver
    15.41
    Posts
    13

    Re: Need formula to total products in a dynamic range based on company name

    Thank you all for your suggestions!

    A pivot table would be nice, but I need a way to compare the data and I'm not sure how to do that with pivot tables.

    Per my example, I need to know how much "Product ABC" a company bought, and how much product "5" and then get a ratio for "Product ABC"/"5"

    Is there a way to do that with pivot tables?

    Thanks

  6. #6
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,425

    Re: Need formula to total products in a dynamic range based on company name

    Please see the updated attachment.
    Attached Files Attached Files

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Pivot pie chart work % of total of company and total profit
    By faodavid in forum Excel Charting & Pivots
    Replies: 2
    Last Post: 11-30-2018, 11:51 AM
  2. [SOLVED] Formula to lookup company/segment name based on dynamic values
    By 198four in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 05-28-2018, 10:28 PM
  3. [SOLVED] automating sumproduct based on dynamic total (a sumif formula)
    By jim808 in forum Excel Programming / VBA / Macros
    Replies: 13
    Last Post: 08-19-2016, 05:40 AM
  4. Replies: 6
    Last Post: 03-05-2016, 02:42 PM
  5. Need to find the total count of products order based on color and sizes
    By sudhina in forum Excel Formulas & Functions
    Replies: 12
    Last Post: 10-16-2014, 08:26 AM
  6. Replies: 4
    Last Post: 05-01-2012, 01:35 PM
  7. Tieing in the Company and the products
    By steppie70 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 03-15-2006, 08:10 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1