+ Reply to Thread
Results 1 to 8 of 8

Multiple values in one cell for sumif function

Hybrid View

  1. #1
    Forum Expert daddylonglegs's Avatar
    Join Date
    01-14-2006
    Location
    England
    MS-Off Ver
    Microsoft 365
    Posts
    14,699

    Re: Multiple values in one cell for sumif function

    It might be easier to split your ranges out into 2 columns then you could use a regular SUMIFS formula, otherwise.....

    Assuming the ranges are in column A, always separated by a hyphen and the amount to sum in column B then with a specific GL in D2 use this formula in E2

    =SUM(IF((D2>=IFERROR(LEFT(A$1:A$100,FIND("-",A$1:A$100)-1)+0,0))*(D2<=IFERROR(REPLACE(A$1:A$100,1,FIND("-",A$1:A$100),"")+0,0)),B$1:B$100))

    confirmed with CTRL+SHIFT+ENTER
    Audere est facere

  2. #2
    Forum Moderator zbor's Avatar
    Join Date
    02-10-2009
    Location
    Croatia
    MS-Off Ver
    365 ProPlus
    Posts
    16,038

    Re: Multiple values in one cell for sumif function

    Or, as daddylongs already said, if you can write only first numbers in your cells.. Your formula might become much simplier:

    (note that if you write 1000-1800, 1810-2200, 2210 - ...) is same as up to 1000, 1800, 2200...
    Attached Files Attached Files
    Never use Merged Cells in Excel

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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