+ Reply to Thread
Results 1 to 5 of 5

[SOLVED] SUMIF Formula Help

  1. #1
    Registered User
    Join Date
    09-18-2012
    Location
    United States
    MS-Off Ver
    Excel 2010
    Posts
    13

    [SOLVED] SUMIF Formula Help

    I was wondering if anyone could help me improve this formula. I'm currently using the following SUMIF formula to add inventory for certain skus:
    =SUMIF('RAW INVENTORY DATA'!A:A,"RR12*",'RAW INVENTORY DATA'!B:B)

    However, I am manually changing the sku of the formula ("AAMM12*"). The list of skus are getting larger so I attempted to use cell reference:
    =SUMIF('RAW INVENTORY DATA'!A:A,"B2*",'RAW INVENTORY DATA'!B:B)

    However, this does not seem to work. Could someone help me figure out the reason why that may be the case?
    I have attached a sample document.

    Also, on the sample document, there is a section titled picture. I've read through the forums and saw solutions for a picture lookup (http://www.mcgimpsey.com/excel/lookuppics.html).
    However, is there an alternative other than a drop-down box?
    I was hoping to look up the sku in cell b2 to return a picture. Would it be correct to assume that this would not be possible without macros?

    Thank you all in advance.
    Attached Files Attached Files
    Last edited by dahh; 06-23-2014 at 05:02 PM. Reason: Problem Solved

  2. #2
    Forum Guru Jonmo1's Avatar
    Join Date
    03-08-2013
    Location
    Bryan, TX
    MS-Off Ver
    Excel 2010
    Posts
    9,763

    Re: SUMIF Formula Help

    Try
    =SUMIF('RAW INVENTORY DATA'!A:A,B2&"*",'RAW INVENTORY DATA'!B:B)

  3. #3
    Registered User
    Join Date
    09-18-2012
    Location
    United States
    MS-Off Ver
    Excel 2010
    Posts
    13

    Re: SUMIF Formula Help

    Thank you so much, it worked perfectly!
    May I ask why "B2*" does not work, but B2&"*"?
    I would really appreciate the knowledge.

  4. #4
    Forum Guru Jonmo1's Avatar
    Join Date
    03-08-2013
    Location
    Bryan, TX
    MS-Off Ver
    Excel 2010
    Posts
    9,763

    Re: SUMIF Formula Help

    Because it will read "B2*" as literally a text string, not the Contents of the cell B2 and an *

    But it will read B2&"*" as the contents of the cell B2 and an *

  5. #5
    Registered User
    Join Date
    09-18-2012
    Location
    United States
    MS-Off Ver
    Excel 2010
    Posts
    13

    Re: SUMIF Formula Help

    Ah, I see! Makes sense. Thank you for the explanation.
    Learning something new everyday!

+ 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] Shorten SUMIF + SUMIF + SUMIF each with same reference range but different criteria???
    By HeyInKy in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 04-13-2014, 09:25 PM
  2. SUMIF or SUMIF's formula with multiple criteria
    By jackiemariee in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 09-30-2013, 06:19 PM
  3. SumIF formula with criteria is Text inside a Formula?
    By excellentlearner in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 10-25-2012, 06:40 PM
  4. Replies: 1
    Last Post: 01-22-2012, 02:47 PM
  5. SUMIF formula that is collects values from an IF formula
    By stanja in forum Excel Formulas & Functions
    Replies: 12
    Last Post: 08-26-2009, 02:37 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