+ Reply to Thread
Results 1 to 4 of 4

Sumif / Sumproduct enhancement or alternative where item could be text or value

  1. #1
    Forum Contributor
    Join Date
    02-14-2012
    Location
    Warrington
    MS-Off Ver
    Excel 365
    Posts
    497

    Sumif / Sumproduct enhancement or alternative where item could be text or value

    Hi

    Anyone got any ideas of alternatives to a SUMIFS or a way of enhancing to cope with criterias that are stored as value or text so need conversion to ensure the criteria and lookup range as both in a consistent format.

    When using a SUMIFS (Column H) I have been adding a helper column to convert the criteria range to text in the source data. I was wondering could this helper column be avoided (Column D) in the attached simple example.

    I've tried using a SUMPRODUCT (column I) where the text conversion is done to the lookup array as part of the formula but the performance of the sumproduct even though real data set is only quite small is really quite slow where a recalc happens everytime data is added to the data table so I'm searching if there's a different approach that's more efficient.

    Whilst this is a simple mock up please keep the solutions capable to dealing with the personnel numbers being in any order and quantity in the source data.

    Thankyou

  2. #2
    Forum Expert Sam Capricci's Avatar
    Join Date
    06-14-2012
    Location
    Palm Harbor, Florida
    MS-Off Ver
    16.95 for Mac MS 365
    Posts
    8,682

    Re: Sumif / Sumproduct enhancement or alternative where item could be text or value

    this appears to work, is this what you are looking for?... =SUMIFS($C$3:$C$10,$A$3:$A$10,F3*1)
    Make contributors happy, click on the "* Add Reputation" as a way to say thank you.
    Sam Capricci

  3. #3
    Forum Contributor
    Join Date
    02-14-2012
    Location
    Warrington
    MS-Off Ver
    Excel 365
    Posts
    497

    Re: Sumif / Sumproduct enhancement or alternative where item could be text or value

    Ah nice so basically it doesn't matter what format the Personnel numbers are in (text or values) in column A. I guess my sumifs text conversion also would of worked. Could of sworn values being in text or values has caused problems in the past so thought I always had to make sure both the lookup value and the lookup range had to be consistent in values or text formats

  4. #4
    Forum Expert Sam Capricci's Avatar
    Join Date
    06-14-2012
    Location
    Palm Harbor, Florida
    MS-Off Ver
    16.95 for Mac MS 365
    Posts
    8,682

    Re: Sumif / Sumproduct enhancement or alternative where item could be text or value

    if you want it in a sumproduct this works too... =SUMPRODUCT((--$A$3:$A$10=F3*1)*($C$3:$C$10))
    but you need to convert both sets (A3:A10 and F3) to numeric for it to return the same numbers.

+ 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] Make a VLOOKUP or alternative function skip an already selected item
    By anthgav in forum Excel Formulas & Functions
    Replies: 16
    Last Post: 01-25-2018, 06:02 PM
  2. Find available item from an Inventory file, searcg alternative Item if not avail
    By Oscar_Italy in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 09-29-2017, 08:34 AM
  3. Replies: 9
    Last Post: 07-21-2016, 07:03 AM
  4. Enhancement to Open And Amend Text Files Using VBA
    By Tellm in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 10-14-2015, 10:14 AM
  5. [SOLVED] Sumproduct alternative to sum/sumif ?
    By amphinomos in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 04-08-2014, 08:31 AM
  6. Alternative to VLOOKUP to return multiple values with same item number
    By hollyw00d81 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 10-01-2012, 03:12 PM
  7. SUMIF/SUMPRODUCT/IF - 2 criteria - Date and Text
    By James T in forum Excel General
    Replies: 4
    Last Post: 05-25-2006, 03:00 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