+ Reply to Thread
Results 1 to 9 of 9

Assistance with Simplified SumIf Formula

Hybrid View

  1. #1
    Forum Guru Sintek's Avatar
    Join Date
    12-04-2015
    Location
    Cape Town
    MS-Off Ver
    2013 | 2019 | 2021
    Posts
    14,958

    Assistance with Simplified SumIf Formula

    Hi All

    I have a formula to calculate a Total. I have attached my workbook.
    Formula is in F8. I need to look up the total sales for all Super 7 products.
    Is there a easier way than the following:

    Formula: copy to clipboard
    =SUM(SUMIF(B8:B844,"*"&"FITCH & LEEDES"&"*",D8:D844)+SUMIF(B8:B844,"*"&"F&L"&"*",D8:D844)+SUMIF(B8:B844,"*"&"MUSGRAVE"&"*",D8:D844)+SUMIF(B8:B844,"*"&"HALLS"&"*",D8:D844)+SUMIF(B8:B844,"*"&"ROSES"&"*",D8:D844)+SUMIF(B8:B844,"*"&"M/FALLS"&"*",D8:D844)+SUMIF(B8:B844,"*"&"NETTARI"&"*",D8:D844)+SUMIF(B8:B844,"*"&"HOPE"&"*",D8:D844)+SUMIF(B8:B844,"*"&"LUCY'S SUMMER GIN"&"*",D8:D844)+SUMIF(B8:B844,"*"&"300ML"&"*",D8:D844)+SUMIF(B8:B844,"*"&"JUICEBOX APPLE FIZZ"&"*",D8:D844))
    Attached Files Attached Files

  2. #2
    Valued Forum Contributor PFDave's Avatar
    Join Date
    05-17-2012
    Location
    Milton Keynes, England
    MS-Off Ver
    Excel 2013
    Posts
    1,067

    Re: Assistance with Simplified SumIf Formula

    Hi

    You can use an Array for this, however you will need to amend your list of super 7 products (in Column F) to have * before and after

    {=SUM(SUMIF(B:B,$F$11:$F$21,D:D))}

    Do not type the curly braces yourself instead input

    =SUM(SUMIF(B:B,$F$11:$F$21,D:D))

    Using CTRL + SHIFT + ENTER

    N.B - your list of super 7 and your text in your formula do not match up so you will get a different result using my method so please amend your list to be accurate

  3. #3
    Forum Guru Sintek's Avatar
    Join Date
    12-04-2015
    Location
    Cape Town
    MS-Off Ver
    2013 | 2019 | 2021
    Posts
    14,958

    Re: Assistance with Simplified SumIf Formula

    Hey there PFDave

    How would the formula look in VBA code

  4. #4
    Forum Guru Sintek's Avatar
    Join Date
    12-04-2015
    Location
    Cape Town
    MS-Off Ver
    2013 | 2019 | 2021
    Posts
    14,958

    Re: Assistance with Simplified SumIf Formula

    Hey there PFDave

    How would the formula look in VBA code

  5. #5
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: Assistance with Simplified SumIf Formula

    Hi,

    Are the Item codes unique to one of the Super 7 product companies/descriptions in the G11:G21 table.?
    e.g. does CFLCS (A45) always belong to F&L or one or other of the super 7?

    If so it would be simpler to build a table of Super7 Item codes, then add a helper column to your data and use an

    =IF(ISERROR(MATCH(A8,item_code_table,False)),"","Super7") in E8 copied down.

    Then use that a simple SUMIF on the helper column that looks for "Super7)
    Richard Buttrey

    RIP - d. 06/10/2022

    If any of the responses have helped then please consider rating them by clicking the small star icon below the post.

  6. #6
    Forum Guru Sintek's Avatar
    Join Date
    12-04-2015
    Location
    Cape Town
    MS-Off Ver
    2013 | 2019 | 2021
    Posts
    14,958

    Re: Assistance with Simplified SumIf Formula

    Hey there guys

    Both Solutions will work perfectly. Thanks so much. Not sure which I'll make use of. Am only now starting to build the system.

  7. #7
    Valued Forum Contributor PFDave's Avatar
    Join Date
    05-17-2012
    Location
    Milton Keynes, England
    MS-Off Ver
    Excel 2013
    Posts
    1,067

    Re: Assistance with Simplified SumIf Formula

    Good luck Sintek, and glad I/we could offer some advice.

    Thanks also for the rep

  8. #8
    Forum Guru Sintek's Avatar
    Join Date
    12-04-2015
    Location
    Cape Town
    MS-Off Ver
    2013 | 2019 | 2021
    Posts
    14,958

    Re: Assistance with Simplified SumIf Formula

    Hey there guys

    Both Solutions will work perfectly. Thanks so much. Not sure which I'll make use of. Am only now starting to build the system.

  9. #9
    Forum Guru Sintek's Avatar
    Join Date
    12-04-2015
    Location
    Cape Town
    MS-Off Ver
    2013 | 2019 | 2021
    Posts
    14,958

    Re: Assistance with Simplified SumIf Formula

    Thanks Guys

    Figured it out.
    ws.Range("G9").FormulaArray = "=SUM(SUMIF(B:B,$F$11:$F$21,D:D))"

+ 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] Suggest Simplified Formula
    By kundanlal in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 12-09-2016, 06:47 AM
  2. Replies: 0
    Last Post: 02-05-2016, 08:14 AM
  3. [SOLVED] Formula working but need simplified mathematics
    By makinmomb in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 04-21-2014, 11:06 AM
  4. Sumif Formula Assistance need to calculate vacation/illnes hours
    By J_Norris in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 01-05-2013, 03:23 PM
  5. Can Formula Be Simplified?
    By natei6 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 05-31-2007, 04:56 AM
  6. SUMIF simplified
    By Gunjani in forum Excel General
    Replies: 7
    Last Post: 03-19-2006, 06:09 PM
  7. Formula SUMIF assistance
    By TQB in forum Excel General
    Replies: 5
    Last Post: 01-24-2005, 07:55 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