+ Reply to Thread
Results 1 to 9 of 9

how to match multiple criteria to get value

  1. #1
    Forum Contributor
    Join Date
    08-07-2018
    Location
    india
    MS-Off Ver
    2007
    Posts
    233

    how to match multiple criteria to get value

    Hi everyone,

    i have a file in which sheet "DESIRE RESULT" has matching criteria from cell A5 to C. and D4 to AH4. these both criteria have to match from sheet "DAILY PRODUCTION" from column C to G.

    i want daily production to be fetched according to date, p.o. no. quality, party name for the whole month. as now there are data only for 2 dates 17 & 18 november.
    but i want the formula when all month data will be available then result should be according to those criteria. and when any change in month then according to that.

    i am hoping to get this as solved.
    Attached Files Attached Files

  2. #2
    Forum Guru Bo_Ry's Avatar
    Join Date
    09-10-2018
    Location
    Thailand
    MS-Off Ver
    MS 365
    Posts
    7,213

    Re: how to match multiple criteria to get value

    Please try at D5

    =SUMIFS('DAILY PRODUCTION'!$E:$E,'DAILY PRODUCTION'!$G:$G,$A5,'DAILY PRODUCTION'!$F:$F,$B5,'DAILY PRODUCTION'!$D:$D,$C5,'DAILY PRODUCTION'!$C:$C,">="&D$4,'DAILY PRODUCTION'!$C:$C,"<"&D$4+1)
    Attached Files Attached Files

  3. #3
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2406
    Posts
    44,486

    Re: how to match multiple criteria to get value

    In your real sheet, will you REALLY be using NOW() in daily production, column C????
    Glenn




    None of us get paid for helping you... we do this for fun. So DON'T FORGET to say "Thank You" to all who have freely given some of their time to help YOU

  4. #4
    Forum Contributor
    Join Date
    08-07-2018
    Location
    india
    MS-Off Ver
    2007
    Posts
    233

    Re: how to match multiple criteria to get value

    very very perfectly done. you are too fast and too responsive. thanks a lot from the bottom of my heart. i have to ask two things only.

    first it is showing zero for the rest of the date so it is difficult to see through so much zero. is it possible that it leaves cell blanks and show data only where the data matches.

    and second thing what for cell AH5 for the section of the formula 'DAILY PRODUCTION'!$C:$C,"<"&AG$4+1).
    i mean to say that when next moth will come for 31 days. then this will work or not for cell AH5.

    how ever i think that it will work but i want to discuss with you.

    rest is fantastic. you have solved my sheet perfectly and in a very easy way. really thanks again.

  5. #5
    Forum Contributor
    Join Date
    08-07-2018
    Location
    india
    MS-Off Ver
    2007
    Posts
    233

    Re: how to match multiple criteria to get value

    for Glenn kennedy sir,

    i works in google sheet. but for posting here i download them as .xls. so really sorry for that. here is the link if you like to have a look. and you always helps me thanks for that.

    https://docs.google.com/spreadsheets...gid=1208098673

  6. #6
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2406
    Posts
    44,486

    Re: how to match multiple criteria to get value

    =IFERROR(1/(1/Bo Ry's formula),"")

    will remove the forest of zeros.

  7. #7
    Forum Contributor
    Join Date
    08-07-2018
    Location
    india
    MS-Off Ver
    2007
    Posts
    233

    Re: how to match multiple criteria to get value

    Quote Originally Posted by Glenn Kennedy View Post
    =IFERROR(1/(1/Bo Ry's formula),"")

    will remove the forest of zeros.
    thank you very very much sir. you are great as always.

  8. #8
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2406
    Posts
    44,486

    Re: how to match multiple criteria to get value

    I do not use Google sheets. Is there a TODAY() function in Google sheets that works in the sam ewas as NOW()? If so, does it work for you in the same way, generating your dates. The problem is that NOW() is a comnination of date and time, whcih makes the formula a bit more complicated than needed. If TODAY() works for you in Google sheets, then you can use a slightly simpler formula and get round the AH5 problem as the dates, everywhere, will then be integers.

  9. #9
    Forum Contributor
    Join Date
    08-07-2018
    Location
    india
    MS-Off Ver
    2007
    Posts
    233

    Re: how to match multiple criteria to get value

    =iferror(1/(1/ SUMIFS('DAILY PRODUCTION'!$E:$E,'DAILY PRODUCTION'!$G:$G,$A5,'DAILY PRODUCTION'!$F:$F,$B5,'DAILY PRODUCTION'!$D:$D,$C5,'DAILY PRODUCTION'!$C:$C,">="&D$4,'DAILY PRODUCTION'!$C:$C,"<"&D$4+1),""))

    this is showing error.

    there is a difference in today and now function. if we enter today() in any cell it will show today's current date which is 18-11-2020. but on the next day this same cell
    will show tomorrow date which will be 19-11-2020.

    so for skipping this problem we use now() which contains date & time so it will never changed. and we can format these cells as date only and they will behave like normal dates.
    please see daily production sheet (column c) in the given link and i have formed them as normal dates but have used now.

+ 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. VBA function to match multiple criteria faster than vlookup or index match
    By bkav1991 in forum Excel Programming / VBA / Macros
    Replies: 15
    Last Post: 11-09-2020, 09:14 AM
  2. Replies: 1
    Last Post: 03-25-2020, 08:06 AM
  3. Replies: 1
    Last Post: 03-01-2020, 10:36 PM
  4. index match for multiple criteria with one criteria being does not match
    By Mr Stern 2 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 12-17-2019, 08:16 AM
  5. Closest match with multiple criteria (3 criteria) Not matching perfectly!
    By JulianS96 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 11-04-2019, 10:50 AM
  6. Need help in Index, Match usage to match multiple criteria in sum function
    By Summer0830 in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 03-26-2017, 02:47 AM
  7. Replies: 2
    Last Post: 09-27-2014, 04:34 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