+ Reply to Thread
Results 1 to 4 of 4

COUNTIF, VLOOKUP, needs some help to work it out please

  1. #1
    Registered User
    Join Date
    04-16-2012
    Location
    Bracknell, Berkshire
    MS-Off Ver
    Excel 2007
    Posts
    5

    COUNTIF, VLOOKUP, needs some help to work it out please

    Hi All,

    I have two columns, column A with a range of 12 products down 797 rows and the next column has a value next to it.

    What I want to do is look up one of the 12 product names in column A and add up the values in column B.

    I am sure I have done this before and I have tried several combinations but no luck.

    Any suggestions?

    Thanks
    Mike

  2. #2
    Forum Expert daffodil11's Avatar
    Join Date
    07-11-2013
    Location
    Phoenixville, PA
    MS-Off Ver
    MS Office 2016
    Posts
    4,465

    Re: COUNTIF, VLOOKUP, needs some help to work it out please

    PivotTable would be the fastest way.

    Select data, insert PivotTable

    Products as Rows, Numbers as Values


    Alternatively, select Column A, Copy, Paste somewhere else.. maybe D?
    Data -> Remove Duplicates
    E1: =SUMPRODUCT((A1:A797=D1)*(B1:B797))
    Make Mom proud: Add to my reputation if I helped out!

    Make the Moderators happy: Mark the Thread as Solved if your question was answered!

  3. #3
    Registered User
    Join Date
    04-16-2012
    Location
    Bracknell, Berkshire
    MS-Off Ver
    Excel 2007
    Posts
    5

    Re: COUNTIF, VLOOKUP, needs some help to work it out please

    I thought someone may suggest a pivot table, having never used one before I think maybe the time has come to learn. Thanks for the response.

  4. #4
    Registered User
    Join Date
    05-15-2015
    Location
    Cambridge
    MS-Off Ver
    2010
    Posts
    2

    Re: COUNTIF, VLOOKUP, needs some help to work it out please

    Unless I'm misreading the post, try =sumif(A:A,D1,B:B)

    Type the name in D1 and you'll get the sum you are after.

+ 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. COUNTIF that I can't get to work as I want it to
    By zelloxy in forum Excel General
    Replies: 2
    Last Post: 07-27-2010, 03:40 AM
  2. SUMPRODUCT vs. COUNTIF -- Why does one work?
    By javamom in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 04-25-2006, 01:25 PM
  3. Need Countif to work like Sumif
    By paulgallanter in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 04-09-2006, 04:00 PM
  4. Countif + vLookup: Can they work together?
    By Spyder in forum Excel General
    Replies: 3
    Last Post: 02-24-2006, 08:30 AM
  5. =COUNTIF(A:A,isnumber) cant work
    By crapit in forum Excel General
    Replies: 8
    Last Post: 10-30-2005, 06:05 PM

Tags for this Thread

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