Jump to content

Calling Excel Experts...


loveindia

Recommended Posts

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

Link to comment
Share on other sites

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

Link to comment
Share on other sites

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

Link to comment
Share on other sites

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 

Link to comment
Share on other sites

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..

Link to comment
Share on other sites

=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

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...