+ Reply to Thread
Results 1 to 6 of 6

Looking for a Formula that would do a Lookup and then Sum the numbers.

  1. #1
    Registered User
    Join Date
    06-07-2012
    Location
    India
    MS-Off Ver
    Excel 2007
    Posts
    66

    Question Looking for a Formula that would do a Lookup and then Sum the numbers.

    Hi,

    The attached workbook has 3 sheet showing the monthly sale of fruits with fruit name in column A and Fruit Qty in column B and one Main sheet that totals the month wise quantity. Currently I am using the following formula to get the sum total =SUM('1:3'!B2) however I am searching for a formula that would first lookup the item name from main sheet with the other sheets and give me the sum total of the Qty next to it.

    I have attached a sample spreadsheet which might be of help. Any suggestions would be greatly helpful.

    Regs.
    Attached Files Attached Files

  2. #2
    Forum Guru MarvinP's Avatar
    Join Date
    07-23-2010
    Location
    Woodinville, WA
    MS-Off Ver
    Office 365
    Posts
    16,169

    Re: Looking for a Formula that would do a Lookup and then Sum the numbers.

    Hi adil,

    Excel has a Pivot Table Consolidate Wizard that does exactly what you want. See:
    https://www.youtube.com/watch?v=azXBOHkXMnQ for an example. See the attached that I've done it with your data.

    No formulas needed. You might want to add the Wizard to your Quick Access Toolbar.
    http://www.addintools.com/documents/...vot-table.html
    Attached Files Attached Files
    One test is worth a thousand opinions.
    Click the * Add Reputation below to say thanks.

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

    Re: Looking for a Formula that would do a Lookup and then Sum the numbers.

    If you'd still like a formula approach with some kind of lookup this file has drop downs in column A of the Main sheet.

    The formula that references them is in B2:B6.
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Attached Files Attached Files

  4. #4
    Forum Expert
    Join Date
    03-28-2014
    Location
    Hyderabad,India
    MS-Off Ver
    Excel 2013
    Posts
    1,887

    Re: Looking for a Formula that would do a Lookup and then Sum the numbers.

    hi,

    Check this

    Punnam
    Attached Files Attached Files

  5. #5
    Registered User
    Join Date
    02-05-2015
    Location
    Edmonton, Alberta
    MS-Off Ver
    2013
    Posts
    70

    Re: Looking for a Formula that would do a Lookup and then Sum the numbers.

    Sum_Lookup.xlsx

    take a look at this spreadsheet i added 2 types of solutions based on how your info will look

  6. #6
    Registered User
    Join Date
    06-07-2012
    Location
    India
    MS-Off Ver
    Excel 2007
    Posts
    66

    Re: Looking for a Formula that would do a Lookup and then Sum the numbers.

    Thank you all for your awesome and quick suggestions.

    MarvinP: Using consolidated ranged Pivot is a very neat idea but I cannot apply it to my workbook as I would need to remove one or more fruits from the main sheet. Although I am surely gonna use this option for my other piece. Thank you very much for the details information. The video really came handy. +1 rep for you.

    FlameRetired & daveisalwayshere: I went through your formula and although it took me some time to link the dots (since I am still don't understand the sumproduct formula) the result that the formula provided was pretty impressive. Its just that the formula would get pretty lengthy if added more sheets to it. Thank you for your suggestion though.

    Punnam: This is the 1st time I have seen a formula that has INDIRECT, SUMIF & the difficult to understand SUMPRODUCT all at once. And you have created a masterpiece. Your formula is very much flexible and fits perfect per my requirement. I will apply this to my actual main sheet "hope I'm able to" Thanxx a ton... +1 rep for you.

+ 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. [SOLVED] Using LOOKUP formula in a list with non-sequential numbers. Is there a better way?
    By ChrisCD in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 02-05-2015, 08:41 PM
  2. [SOLVED] Formula to lookup a range of numbers and then return data in next 2 columns
    By justmeok in forum Excel Formulas & Functions
    Replies: 11
    Last Post: 05-15-2013, 11:54 PM
  3. Replies: 11
    Last Post: 07-15-2012, 08:44 PM
  4. Replies: 5
    Last Post: 02-24-2011, 11:26 AM
  5. How lookup numbers between range numbers in 1 cell ?
    By termal in forum Excel General
    Replies: 4
    Last Post: 02-06-2010, 06:57 AM

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