Batman_fan Posted July 19, 2016 Report Posted July 19, 2016 2 minutes ago, loveindia said: I just want to see if I can do that as a formula because I plan to rewrite the same into DAX man.... not sure if we can achieve your request using any out-of-box excel function....I only know VBA Quote
Staysafebro Posted July 19, 2016 Report Posted July 19, 2016 27 minutes ago, loveindia said: didn't understand your formula man... How do you know the data is always only upto A2:D3? have you tried something called OFFSET before? that can help with that find... but how will you apply the BETWEEN formula here man.... =VLOOKUP(A2,Sheet2!$A$2:INDEX(Sheet2!$A:$D,A2,4),4,TRUE) Assuming dynamic rows Quote
Pehlwan Posted July 19, 2016 Report Posted July 19, 2016 3 minutes ago, loveindia said: Sheet 1 lo EmpID and Date ni use cheskoni, Sheet 2 lo unna EmpID and BETWEEN StartDate AND EndDate between lo aa date (from sheet1) untey appudu it has to give the Dept ID... pass uncle man Quote
Staysafebro Posted July 19, 2016 Report Posted July 19, 2016 i didn't see the date requirement but i am eating right now..will see what i can do Quote
Staysafebro Posted July 19, 2016 Report Posted July 19, 2016 =IF(Sheet2!B2<C2<Sheet2!C2,VLOOKUP(A2,Sheet2!$A$2:INDEX(Sheet2!$A:$D,A2,4),4,TRUE),"Out of range") I hope I am getting to what you are asking for.. Quote
Imperial Posted July 19, 2016 Report Posted July 19, 2016 57 minutes ago, loveindia said: didn't understand your formula man... How do you know the data is always only upto A2:D3? have you tried something called OFFSET before? that can help with that find... but how will you apply the BETWEEN formula here man.... do A:A in that case, that looks up entire A Quote
loveindia Posted July 19, 2016 Author Report Posted July 19, 2016 30 minutes ago, Staysafebro said: =IF(Sheet2!B2<C2<Sheet2!C2,VLOOKUP(A2,Sheet2!$A$2:INDEX(Sheet2!$A:$D,A2,4),4,TRUE),"Out of range") I hope I am getting to what you are asking for.. Use chesi chepta man.. Quote
Staysafebro Posted July 19, 2016 Report Posted July 19, 2016 =IF(AND(Sheet2!C2>C2,C2>Sheet2!B2),VLOOKUP(A2,Sheet2!$A$2:INDEX(Sheet2!$A:$D,A2,4),4,TRUE),"Out of range") try this too..make sure that the cells are set to date format... use format painter to adjust that Quote
Staysafebro Posted July 19, 2016 Report Posted July 19, 2016 Tested this one too =IF(AND(Sheet2!C2>C2,C2>Sheet2!B2),VLOOKUP(A2,Sheet2!$A$2:INDEX(Sheet2!$A:$D,ROW(),4),4,TRUE),"Out of range") Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.