+ Reply to Thread
Results 1 to 14 of 14

formula as criteria in SUMIFS

  1. #1
    Forum Contributor
    Join Date
    04-19-2013
    Location
    Yorkshire, England
    MS-Off Ver
    Excel 2010
    Posts
    297

    formula as criteria in SUMIFS

    I am trying to use an INDEX:MATCH formula as a criteria in a SUMIFS formula.

    Formula: copy to clipboard
    Please Login or Register  to view this content.


    As you can see two of the criteria (the problem ones) are INDEX:MATCH formulas to look up a value. However, the complication is that the lookup value contains a formula itself- the values are a variation on this: ">="&DATE(2014,1,1) contained within another cell.

    If I replace the index:match formula with the values (">="&DATE(2014,1,1)) the formula works, so it is just a problem with inseerting it using INDEX:MATCH

    Is this possible, any ideas for a way to work around it?

    Thanks

  2. #2
    Forum Expert BadlySpelledBuoy's Avatar
    Join Date
    06-14-2013
    Location
    East Sussex, UK
    MS-Off Ver
    365
    Posts
    7,915

    Re: formula as criteria in SUMIFS

    Could you post a sample workbook?

  3. #3
    Forum Expert XOR LX's Avatar
    Join Date
    04-18-2013
    Location
    Turin, Italy
    MS-Off Ver
    Office 365
    Posts
    7,742

    Re: formula as criteria in SUMIFS

    Hi,

    Can you clarify precisely what the return of this formula is?

    =INDEX(Report_DateRef,MATCH('Monthly Report'!$B$3,Report_Month,0))

    Regards
    Click * below if this answer helped

    Advanced Excel Techniques: http://excelxor.com/

  4. #4
    Forum Contributor
    Join Date
    04-19-2013
    Location
    Yorkshire, England
    MS-Off Ver
    Excel 2010
    Posts
    297

    Re: formula as criteria in SUMIFS

    Unfortunately cannot do a sample workbook, apologies, however the return is two date ranges that pull out data within a month, so for example:

    ">="&DATE(2014,1,1) and "<"&DATE(2014,2,1)

    thanks

  5. #5
    Forum Expert XOR LX's Avatar
    Join Date
    04-18-2013
    Location
    Turin, Italy
    MS-Off Ver
    Office 365
    Posts
    7,742

    Re: formula as criteria in SUMIFS

    Sorry - you don't understand. What is the precise return of the formula I gave?

    Regards

  6. #6
    Forum Contributor
    Join Date
    04-19-2013
    Location
    Yorkshire, England
    MS-Off Ver
    Excel 2010
    Posts
    297

    Re: formula as criteria in SUMIFS

    ">="&date(2014,8,1)

  7. #7
    Forum Expert BadlySpelledBuoy's Avatar
    Join Date
    06-14-2013
    Location
    East Sussex, UK
    MS-Off Ver
    365
    Posts
    7,915

    Re: formula as criteria in SUMIFS

    What he means is, paste his formula into your worksheet and post back what the result of that formula is.

  8. #8
    Forum Contributor
    Join Date
    04-19-2013
    Location
    Yorkshire, England
    MS-Off Ver
    Excel 2010
    Posts
    297

    Re: formula as criteria in SUMIFS

    sorry misunderstood, see above I edited the post

  9. #9
    Forum Expert XOR LX's Avatar
    Join Date
    04-18-2013
    Location
    Turin, Italy
    MS-Off Ver
    Office 365
    Posts
    7,742

    Re: formula as criteria in SUMIFS

    I see. So you've actually actually got that as a text string within that cell?

    Without VBA, instructing Excel to interpret that text string as an actual formula is going to be problematic to say the least.

    But what I don't understand is why you've gone to the trouble to enter such strings in those cells in the first place. Why not just have dates in there - the greater-than or less-than signs can be put in the formula itself: there's no need to have a convoluted text string containing them.

    If they did contain actual dates, then we could work on a formula-based solution without problem, I imagine.

    However, even then it would be best if you could upload an actual workbook. Obviously replace any confidential data with dummy data if necessary.

    Regards

  10. #10
    Forum Contributor
    Join Date
    04-19-2013
    Location
    Yorkshire, England
    MS-Off Ver
    Excel 2010
    Posts
    297

    Re: formula as criteria in SUMIFS

    Sorry but it would just to take to long to change all the data for a sample.

    I used that method because the text strings are needed elsewhere and, where possible, I like to keep things standardised.

    However, I tried using actual dates and putting the >/< symbols into the formula itself, but again this doesn't work. This is the formula I used...

    Please Login or Register  to view this content.
    Again when I removed the INDEX:MATCH and just put in ">="& and directly referenced the cell with the date in it calculates the data fine

    So again I am confused

  11. #11
    Forum Contributor
    Join Date
    04-19-2013
    Location
    Yorkshire, England
    MS-Off Ver
    Excel 2010
    Posts
    297

    Re: formula as criteria in SUMIFS

    I have marked the thread as solved because I have managed to work around it using a completely different method.

    Without a sample workbook an explanation just seem valuable or worthwhile, so I will leave it that - thanks for your help anyway!

  12. #12
    Forum Expert XOR LX's Avatar
    Join Date
    04-18-2013
    Location
    Turin, Italy
    MS-Off Ver
    Office 365
    Posts
    7,742

    Re: formula as criteria in SUMIFS

    Are you really unable to generate a workbook for the purpose of this query?

    Many people are in the same position as I imagine you are, i.e. do not wish to upload sensitive/confidential data, though that is why we suggest to use dummy data. It doesn't even have to be the entire dataset: simply a small, mock-up version which demonstrates the issues.

    If you're not able/willing to do that then I'm not sure I'll be able to assist any further. This theoretical exchange could go on some time, and it seems a touch absurd given that this could be resolved quite quickly I imagine upon seeing an actual workbook.

    Regards

  13. #13
    Forum Contributor
    Join Date
    04-19-2013
    Location
    Yorkshire, England
    MS-Off Ver
    Excel 2010
    Posts
    297

    Re: formula as criteria in SUMIFS

    Please read above comment, I have resolved it. Thank you

    The method I used was not related to the problem in the thread so is irrelevant

  14. #14
    Forum Expert XOR LX's Avatar
    Join Date
    04-18-2013
    Location
    Turin, Italy
    MS-Off Ver
    Office 365
    Posts
    7,742

    Re: formula as criteria in SUMIFS

    Quote Originally Posted by strud View Post
    Please read above comment, I have resolved it. Thank you

    The method I used was not related to the problem in the thread so is irrelevant
    Ok. Thanks for getting back to us and for closing the thread.

    Regards

+ 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] SUMIFS formula including less than or equals criteria
    By bridge4444 in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 02-27-2020, 10:01 AM
  2. [SOLVED] SUMIF OR SUMIFS functions with criteria as formula
    By akbarmajor in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 05-08-2014, 09:43 AM
  3. [SOLVED] sumifs formula one range with two criteria
    By avk in forum Excel General
    Replies: 7
    Last Post: 07-13-2012, 02:13 PM
  4. VBA: add SUMIFS formula with cell reference as criteria
    By sepi in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 03-25-2012, 05:57 PM
  5. Replies: 1
    Last Post: 05-16-2011, 05: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