+ Reply to Thread
Results 1 to 48 of 48

Need VLOOKUP for multiple criteria

  1. #1
    Forum Contributor
    Join Date
    12-06-2013
    Location
    Sri Lanka
    MS-Off Ver
    Excel 2016
    Posts
    611

    Exclamation Need VLOOKUP for multiple criteria

    Dear experts,
    In the following work sheet (this has VB also running behind), I need the following;

    #01
    The cell U6 returns the value (start up days) as per the the table in "categories" sheet(S2 to P9).

    However, I need to combine another criteria to this using the table in categories sheet (R12 to S13). Accordingly, the resulted value in U6 should be changed. Selection criteria is in column I6 (RPT or NEW).

    #02

    The cell V6 should calculates the no of days the production run (example: in row 6>>> 7 days(days run) - from May 17 to May 24). Need a formula to handle this condition.


    Thanks in advance
    Anuruddha
    Attached Files Attached Files

  2. #2
    Forum Contributor
    Join Date
    08-29-2012
    Location
    Slough
    MS-Off Ver
    Excel 2007
    Posts
    469

    Re: Need VLOOKUP for multiple criteria

    Sorry, I can't see what the second condition adds to the first. Do you want to subtract a day if it is RPT?

    V6 can just be =y6-x6?

  3. #3
    Forum Contributor
    Join Date
    12-06-2013
    Location
    Sri Lanka
    MS-Off Ver
    Excel 2016
    Posts
    611

    Re: Need VLOOKUP for multiple criteria

    Quote Originally Posted by DannyJ View Post
    Sorry, I can't see what the second condition adds to the first. Do you want to subtract a day if it is RPT?

    V6 can just be =y6-x6?
    Thanks, yes. I want to subtract "a day" if it is RPT.

  4. #4
    Forum Contributor
    Join Date
    08-29-2012
    Location
    Slough
    MS-Off Ver
    Excel 2007
    Posts
    469

    Re: Need VLOOKUP for multiple criteria

    =IF(I6="RPT",VLOOKUP(T6,Categories!$O$2:$P$9,2,1)-1,VLOOKUP(T6,Categories!$O$2:$P$9,2,1))

  5. #5
    Forum Contributor
    Join Date
    12-06-2013
    Location
    Sri Lanka
    MS-Off Ver
    Excel 2016
    Posts
    611

    Re: Need VLOOKUP for multiple criteria

    Quote Originally Posted by DannyJ View Post
    =IF(I6="RPT",VLOOKUP(T6,Categories!$O$2:$P$9,2,1)-1,VLOOKUP(T6,Categories!$O$2:$P$9,2,1))
    Hi Danny,
    This is just simply brilliant. It works. Thanks a lot.

    However, is there any way to make the value in the U6 "zero"? I mean, by adding any criteria such as "NO" along with "RPT"?
    For example, when "NO" is selected instead of RPT, the U6 value should become zero.!

  6. #6
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,595

    Re: Need VLOOKUP for multiple criteria

    Problem solved!!

  7. #7
    Forum Contributor
    Join Date
    08-29-2012
    Location
    Slough
    MS-Off Ver
    Excel 2007
    Posts
    469

    Re: Need VLOOKUP for multiple criteria

    =IF(I6="No",0,IF(I6="RPT",VLOOKUP(T6,Categories!$O$2:$P$9,2,1)-1,VLOOKUP(T6,Categories!$O$2:$P$9,2,1)))

  8. #8
    Forum Contributor
    Join Date
    12-06-2013
    Location
    Sri Lanka
    MS-Off Ver
    Excel 2016
    Posts
    611

    Re: Need VLOOKUP for multiple criteria

    Hiiii John,
    Thanks for your reply.

    Danny's VLOOKUP solution is working to subtract 1 day from "start up days".

    As it appears, there is no effect on VBA, macro is running as it is..

    Danny's reply: V6=Y6-X6 is okay. However, there is little concern when the "last day production is half, it still shows as a full day". May be there could be a complicated formula to handle this situation to give decimals, ex: 7.5 days, 7.2 days etc..

  9. #9
    Forum Contributor
    Join Date
    08-29-2012
    Location
    Slough
    MS-Off Ver
    Excel 2007
    Posts
    469

    Re: Need VLOOKUP for multiple criteria

    Anuru,

    It should work fine for you as is.
    Last edited by DannyJ; 07-13-2017 at 06:34 AM.

  10. #10
    Forum Contributor
    Join Date
    12-06-2013
    Location
    Sri Lanka
    MS-Off Ver
    Excel 2016
    Posts
    611

    Re: Need VLOOKUP for multiple criteria

    Quote Originally Posted by Anuru View Post
    Hiiii John,
    Thanks for your reply.

    Danny's VLOOKUP solution is working to subtract 1 day from "start up days".

    As it appears, there is no effect on VBA, macro is running as it is..

    Danny's reply: V6=Y6-X6 is okay. However, there is little concern when the "last day production is half, it still shows as a full day". May be there could be a complicated formula to handle this situation to give decimals, ex: 7.5 days, 7.2 days etc..
    Hi John,
    Now, I noticed when "start up days" become zero, the VBA macro takes so much time to process and returns "run time error 6 and something "overflow" etc. However, this "No" option is not the right solution.

    Actually, I want the first day of every line (for example: row 6, row 17 and row 24 etc) to have "zero" start up days. Because, the start of a line doesn't need "start up days" concept. It is needed when the next style is fed in the production line.

  11. #11
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,595

    Re: Need VLOOKUP for multiple criteria

    Formatting will not solve problem as the "production Days" is simply subtraction of 2 dates:

    To get an "accurate" figure, the last production day is the "Qty of product produced"/Daily Production Qty"

    so for row 6: the last day is 260/540 (0.48) assuming a day is 24 hours

    so V6=(Y6-X6-1) + (260/540) as an example

  12. #12
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,595

    Re: Need VLOOKUP for multiple criteria

    or ...Production days

    =N6/Z6 (???)

  13. #13
    Forum Contributor
    Join Date
    12-06-2013
    Location
    Sri Lanka
    MS-Off Ver
    Excel 2016
    Posts
    611

    Re: Need VLOOKUP for multiple criteria

    Quote Originally Posted by JohnTopley View Post
    or ...Production days

    =N6/Z6 (???)
    Yes, this is the way to do it.

    =N6/Z6

    Thanks

  14. #14
    Forum Contributor
    Join Date
    12-06-2013
    Location
    Sri Lanka
    MS-Off Ver
    Excel 2016
    Posts
    611

    Red face Re: Need VLOOKUP for multiple criteria

    Quote Originally Posted by Anuru View Post
    Hi John,
    Now, I noticed when "start up days" become zero, the VBA macro takes so much time to process and returns "run time error 6 and something "overflow" etc. However, this "No" option is not the right solution.

    Actually, I want the first day of every line (for example: row 6, row 17 and row 24 etc) to have "zero" start up days. Because, the start of a line doesn't need "start up days" concept. It is needed when the next style is fed in the production line.
    Hi John,
    When the start up days become "zero", the VBA macro gives an error. The error is as follows;

    run time error 6
    overflow

    kindly have a look at this please if you have time...
    Attached Files Attached Files

  15. #15
    Forum Contributor
    Join Date
    12-06-2013
    Location
    Sri Lanka
    MS-Off Ver
    Excel 2016
    Posts
    611

    Re: Need VLOOKUP for multiple criteria

    Quote Originally Posted by Anuru View Post
    Hi John,
    When the start up days become "zero", the VBA macro gives an error. The error is as follows;

    run time error 6
    overflow

    kindly have a look at this please if you have time...
    Hi John,
    Now I am very much in need of using this work sheet for my daily work. It would be great and appreciated if you could provide a solution to the "zero" issue I have mentioned in the VBA macro.

    Thanks in advance.

  16. #16
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,595

    Re: Need VLOOKUP for multiple criteria

    If SMV (T6) is set to 0 and therefore U6=0 (VLOOKUP) then M6 has DIV#0 errors as it it uses the T6 value.

    So this needs addressing.

    And will it only be T6/U6 set to 0?

  17. #17
    Forum Contributor
    Join Date
    12-06-2013
    Location
    Sri Lanka
    MS-Off Ver
    Excel 2016
    Posts
    611

    Re: Need VLOOKUP for multiple criteria

    Hi John,
    Gentle reminder about the Zero issue in VBA macro..

    I have attached here the most updated work sheet here.

  18. #18
    Forum Contributor
    Join Date
    12-06-2013
    Location
    Sri Lanka
    MS-Off Ver
    Excel 2016
    Posts
    611

    Re: Need VLOOKUP for multiple criteria

    Quote Originally Posted by JohnTopley View Post
    If SMV (T6) is set to 0 and therefore U6=0 (VLOOKUP) then M6 has DIV#0 errors as it it uses the T6 value.

    So this needs addressing.

    And will it only be T6/U6 set to 0?
    Sorry I didn't see the above reply...

  19. #19
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2407 (Windows 11 23H2 64-bit)
    Posts
    83,146

    Re: Need VLOOKUP for multiple criteria

    John asked you a question which you have yet to answer ...
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

  20. #20
    Forum Contributor
    Join Date
    12-06-2013
    Location
    Sri Lanka
    MS-Off Ver
    Excel 2016
    Posts
    611

    Re: Need VLOOKUP for multiple criteria

    Quote Originally Posted by JohnTopley View Post
    If SMV (T6) is set to 0 and therefore U6=0 (VLOOKUP) then M6 has DIV#0 errors as it it uses the T6 value.

    So this needs addressing.

    And will it only be T6/U6 set to 0?
    Hi John,
    there is no "division", between T6 (SMV) and U6 (Start up). Start up days depend on the table given at P and Q columns(Categories tab). However, SMV is the criteria which determines the "number of start up days".

  21. #21
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,595

    Re: Need VLOOKUP for multiple criteria

    Read my reply: look at N6 in your latest file:

    =60/U6*K6*L6*M6

    U6 is SMV and SMV is 0 for 0 start up day of 0.

    Set SMV (U6) to 0 .....

  22. #22
    Forum Contributor
    Join Date
    12-06-2013
    Location
    Sri Lanka
    MS-Off Ver
    Excel 2016
    Posts
    611

    Re: Need VLOOKUP for multiple criteria

    Quote Originally Posted by JohnTopley View Post
    Read my reply: look at N6 in your latest file:

    =60/U6*K6*L6*M6

    U6 is SMV and SMV is 0 for 0 start up day of 0.

    Set SMV (U6) to 0 .....
    SMV is used to calculate the "target". If SMV becomes "zero", target cannot be calculated.
    Only if you can change VBA macro to "accept" zero value in "start up days" column, and remove start up days (shown in red), it will be workable.

  23. #23
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,595

    Re: Need VLOOKUP for multiple criteria

    Start Up days is determined by the VLOOKUP so you cannot override it with a value: that is (part of) the problem.

  24. #24
    Forum Contributor
    Join Date
    12-06-2013
    Location
    Sri Lanka
    MS-Off Ver
    Excel 2016
    Posts
    611

    Re: Need VLOOKUP for multiple criteria

    Quote Originally Posted by JohnTopley View Post
    Start Up days is determined by the VLOOKUP so you cannot override it with a value: that is (part of) the problem.
    Hi John,
    I manually put "0" in the start up days value(deleted the formula), then also VBA macro is not running. could there be other reason?

  25. #25
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,595

    Re: Need VLOOKUP for multiple criteria

    The macro needs changing BUT you it is not advised to override the formula: you will have to re-instate for cases where start up is not 0.

  26. #26
    Forum Contributor
    Join Date
    12-06-2013
    Location
    Sri Lanka
    MS-Off Ver
    Excel 2016
    Posts
    611

    Re: Need VLOOKUP for multiple criteria

    I have tried changing to decimal values such as 0.2, 0.5 etc, but the same error is coming..

  27. #27
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,595

    Re: Need VLOOKUP for multiple criteria

    This is because the VBA needs changing!

    Try the attached:
    Attached Files Attached Files
    Last edited by JohnTopley; 07-21-2017 at 05:53 AM.

  28. #28
    Forum Contributor
    Join Date
    12-06-2013
    Location
    Sri Lanka
    MS-Off Ver
    Excel 2016
    Posts
    611

    Thumbs up Re: Need VLOOKUP for multiple criteria

    Hi John,
    did you have time to work out VBA coding?
    I have herewith attached the most updated sheet. Still I am not able to implement this work sheet for my planning work because of the above issue in VBA.

  29. #29
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,595

    Re: Need VLOOKUP for multiple criteria

    Code was changed in my last post BUt I know start up days in column W.

    I'll leave changes to you based on my last post.

  30. #30
    Forum Contributor
    Join Date
    12-06-2013
    Location
    Sri Lanka
    MS-Off Ver
    Excel 2016
    Posts
    611

    Re: Need VLOOKUP for multiple criteria

    Quote Originally Posted by JohnTopley View Post
    Code was changed in my last post BUt I know start up days in column W.

    I'll leave changes to you based on my last post.
    Hi John,
    I downloaded mod 3, but when I changed Prod start date, formula doesn't start as per that date. For example, when I changed Prd start date to May 15, the production values start from June 10...

  31. #31
    Forum Contributor
    Join Date
    12-06-2013
    Location
    Sri Lanka
    MS-Off Ver
    Excel 2016
    Posts
    611

    Re: Need VLOOKUP for multiple criteria

    Quote Originally Posted by Anuru View Post
    Hi John,
    I downloaded mod 3, but when I changed Prod start date, formula doesn't start as per that date. For example, when I changed Prd start date to May 15, the production values start from June 10...
    Hi John,
    Now, I checked again. I found these problems; the production date start issue ok.

    01. The code works only in row 6 ( I changed start up days to 0 in row 8, but it doesn't change anything)
    02. Although code works in row 6, after removing the start up date, production start date stays in the same position(date), it doesn't come forward. For example, if the prod start date is May 15 and has 1 start up day, after removing the start up day, it doesn't start from May 14.


    02.

  32. #32
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,595

    Re: Need VLOOKUP for multiple criteria

    If you require more work then I suggest you contact "Commercial Services" to do the VBA.

    The logic for multiple zero Start Up days needs defining and the code re-designed.
    Last edited by JohnTopley; 07-27-2017 at 01:41 AM.

  33. #33
    Forum Contributor
    Join Date
    12-06-2013
    Location
    Sri Lanka
    MS-Off Ver
    Excel 2016
    Posts
    611

    Re: Need VLOOKUP for multiple criteria

    Quote Originally Posted by JohnTopley View Post
    If you require more work then I suggest you contact "Commercial Services" to do the VBA.

    The logic for multiple zero Start Up days needs defining and the code re-designed.
    Hi John,
    I checked the commercial services page. However, I don't understand the the "Points" concept. If I pay 20 $, will be able to post any number of posts/requirements within this "one month" period? Or is there any limitation?

    Moreover, how is the speed of the attention on the questions and solutions? Kindly give me some idea.

    Regards
    Anuruddha

  34. #34
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,595

    Re: Need VLOOKUP for multiple criteria

    I have never used Commercial Services so I don't know how exactly their services are costed. However, I am sure they will give a good response providing any requirement is clearly specified.

    You need to give a good sample of the multiple "Start Up Days", including for example production finishing on a Thursday, next production having 0 Start Up, but with Friday (non-work), Sat/Sun holidays so (presumably) next production start is Monday : if no holidays, then Saturday (?).

  35. #35
    Forum Contributor
    Join Date
    12-06-2013
    Location
    Sri Lanka
    MS-Off Ver
    Excel 2016
    Posts
    611

    Re: Need VLOOKUP for multiple criteria

    Noted and will try.

  36. #36
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,595

    Re: Need VLOOKUP for multiple criteria

    I am I correct in the logic for o Start-Up days?

    For example production finishing on a Thursday, next production having 0 Start Up, but with Friday (non-work), Sat/Sun holidays so (presumably) next production start is Monday : if no holidays, then Saturday (?).

  37. #37
    Forum Contributor
    Join Date
    12-06-2013
    Location
    Sri Lanka
    MS-Off Ver
    Excel 2016
    Posts
    611

    Red face Re: Need VLOOKUP for multiple criteria

    Quote Originally Posted by JohnTopley View Post
    I am I correct in the logic for o Start-Up days?
    Yes, that is exactly correct.

    However, when there is a "zero" start up day for first production start date (for example row 6, row 17, row 24 etc, the Production start date should "advance" by one day(for example, when the production start date is 15 May, daily production figures should start from 15 May)

    If you would have time to try again, please find the most updated work sheet below.

  38. #38
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,595

    Re: Need VLOOKUP for multiple criteria

    However, when there is a "zero" start up day for first production start date (for example row 6, row 17, row 24 etc, the Production start date should "advance" by one day(for example, when the production start date is 15 May, daily production figures should start from 15 May)
    How is 15th May "advanced" when ...

    production start date is 15 May, daily production figures should start from 15 May
    ?

    I find this very confusing!

  39. #39
    Forum Contributor
    Join Date
    12-06-2013
    Location
    Sri Lanka
    MS-Off Ver
    Excel 2016
    Posts
    611

    Re: Need VLOOKUP for multiple criteria

    Quote Originally Posted by JohnTopley View Post
    How is 15th May "advanced" when ...



    ?

    I find this very confusing!

    For example, in a style where 3 start up days are shown(row 6 > May 14 to May 16), and production starts on 17th. In this case, when start up days become zero, the production start date should advance/jump forward to 14th.

    This scenario should happen in all the rows(row 6, 8, 10, 12, 14 etc) whenever, the start up days become zero.

  40. #40
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,595

    Re: Need VLOOKUP for multiple criteria

    I think your logic is wrong: we start by taking the Production Start (17th May), deducting the Start Up Days (3) to arrive at a Start Up of 14th May (assuming there are no Friday/Holidays).

    If Start Up Days is 0, then Start up=Production Start (17th May) not 14th May (maybe this was a typo!?).
    Last edited by JohnTopley; 07-27-2017 at 06:23 AM.

  41. #41
    Forum Contributor
    Join Date
    12-06-2013
    Location
    Sri Lanka
    MS-Off Ver
    Excel 2016
    Posts
    611

    Re: Need VLOOKUP for multiple criteria

    Quote Originally Posted by JohnTopley View Post
    I think your logic is wrong: we start by taking the Production Start (17th May), deducting the Start Up Days (3) to arrive at a Start Up of 14th May (assuming there are no Friday/Holidays).

    If Start Up Days is 0, then Start up=Production Start (17th May) not 14th May (maybe this was a typo!?).
    Let me explain the real scenario;

    In practical situation, the start up days fall within the production line plan. For example, in a case where there are 3 start up days, and if the Prd start date is 15 May, the actual production comes out from the production line 18th May. Which means, 15th, 16th and 17 May are considered as stat up days.

    In other words, "the planned prd start day" of the production line is 15th May. However, due to feeding time physical out put comes out on 18th May.(in this work sheet, based on the SMV, I have pre-defined how many "start up days" are required(in categories)

  42. #42
    Forum Contributor
    Join Date
    12-06-2013
    Location
    Sri Lanka
    MS-Off Ver
    Excel 2016
    Posts
    611

    Re: Need VLOOKUP for multiple criteria

    In other words start up days are "feeding time".
    Last edited by AliGW; 07-27-2017 at 07:19 AM. Reason: Unnecessary quotation removed.

  43. #43
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,595

    Re: Need VLOOKUP for multiple criteria

    we start by taking the Production Start (17th May), deducting the Start Up Days (3) to arrive at a Start Up of 14th May (assuming there are no Friday/Howrong:lidays).
    that is how the calculation is done, working back from the "Production Start" (column Z). We do not start from "Start Up" (column Y) and add the "Start Up Days" in column Y.

    As you have not answered my question i.e how can Start Up" be 14th May?, it will be better that you hand this over to "Commercial Services" as I have spent a great deal of time of a constantly changing scenario (all for free!).

  44. #44
    Forum Contributor
    Join Date
    12-06-2013
    Location
    Sri Lanka
    MS-Off Ver
    Excel 2016
    Posts
    611

    Re: Need VLOOKUP for multiple criteria

    Quote Originally Posted by JohnTopley View Post
    that is how the calculation is done, working back from the "Production Start" (column Z). We do not start from "Start Up" (column Y) and add the "Start Up Days" in column Y.

    As you have not answered my question i.e how can Start Up" be 14th May?, it will be better that you hand this over to "Commercial Services" as I have spent a great deal of time of a constantly changing scenario (all for free!).
    If Start Up Days is 0, then Start up=Production Start (17th May) not 14th May (maybe this was a typo!?).

    The above logic is correct. If u can work accordingly, pls try.

  45. #45
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,595

    Re: Need VLOOKUP for multiple criteria

    See attached .....
    Attached Files Attached Files

  46. #46
    Forum Contributor
    Join Date
    12-06-2013
    Location
    Sri Lanka
    MS-Off Ver
    Excel 2016
    Posts
    611

    Re: Need VLOOKUP for multiple criteria

    Quote Originally Posted by Anuru View Post
    If Start Up Days is 0, then Start up=Production Start (17th May) not 14th May (maybe this was a typo!?).

    The above logic is correct. If u can work accordingly, pls try.
    If the VBA works for "ZERO" start up days, the problem is solved.

  47. #47
    Forum Contributor
    Join Date
    12-06-2013
    Location
    Sri Lanka
    MS-Off Ver
    Excel 2016
    Posts
    611

    Re: Need VLOOKUP for multiple criteria

    Quote Originally Posted by JohnTopley View Post
    See attached .....
    Brilliant John. It is working now.
    Thanks a lot for your kindness and hard work in working out this project.
    May good health, happiness and prosperity be with you all the time.

  48. #48
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,595

    Re: Need VLOOKUP for multiple criteria

    If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED. Thanks.

+ 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] Vlookup multiple criteria returning multiple values
    By ykobure in forum Excel Formulas & Functions
    Replies: 13
    Last Post: 04-16-2015, 07:28 AM
  2. [SOLVED] iserror and vlookup with multiple criteria from multiple tables along with concatenation.
    By marcusduton in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 03-14-2015, 02:16 AM
  3. Vlookup on multiple axis with multiple criteria
    By theLOLkid in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 01-11-2015, 02:48 PM
  4. Vlookup (or index/match) with multiple criteria over multiple sheets
    By Groovicles in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 09-18-2013, 01:56 PM
  5. vlookup? match? index? MULTIPLE criteria for vlookup search problem....
    By aborg88 in forum Excel Formulas & Functions
    Replies: 10
    Last Post: 02-11-2013, 09:56 AM
  6. Possible VLOOKUP multiple criteria & multiple worksheets
    By this2willpass in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 12-16-2012, 08:23 AM
  7. Vlookup + multiple criteria + multiple data returned
    By stonesy in forum Excel General
    Replies: 6
    Last Post: 02-17-2010, 08:53 AM

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