vlookup help

Amine008

New Member
Joined
Dec 17, 2016
Messages
14
Hey guys,

I'm new here in your forum and need a quick help to solve one issue that I'm facing.
In the below, I want a formula to see if the badge id was present in the date (Culmn H) or off in this date.

Thanks for your help.

A B C D G H I
BadgeFrom DateTo DateAttendanceBadgeDateAttendance
123416/12/201619/12/2016Absent123417/12/2016Here I want to see if badge id is present or off this day
123519/12/201620/12/2016Holiday123517/12/2016Here I want to see if badge id is present or off this day
123620/12/201621/12/2016Holiday123617/12/2016Here I want to see if badge id is present or off this day
123721/12/201622/12/2016Absent123717/12/2016Here I want to see if badge id is present or off this day
123822/12/201623/12/2016sick123817/12/2016Here I want to see if badge id is present or off this day
123418/12/2016Here I want to see if badge id is present or off this day
123518/12/2016Here I want to see if badge id is present or off this day
123618/12/2016Here I want to see if badge id is present or off this day
123718/12/2016Here I want to see if badge id is present or off this day
123818/12/2016Here I want to see if badge id is present or off this day

<colgroup><col><col span="2"><col span="4"><col><col></colgroup><tbody>
</tbody>
 
Yes -- by adding two INT's. Here is an updated formula:

=IF(AND(H2>=INT(INDEX(B:B,MATCH(G2,A:A,0))),H2<=INT(INDEX(C:C,MATCH(G2,A:A,0)))),INDEX(D:D,MATCH(G2,A:A,0)),"Present")

Thanks a lot issue resolved. The stress on me was enormous ..
Many thanks for your help appreciate all support :)
 
Upvote 0

Excel Facts

How can you automate Excel?
Press Alt+F11 from Windows Excel to open the Visual Basic for Applications (VBA) editor.

Forum statistics

Threads
1,215,741
Messages
6,126,591
Members
449,320
Latest member
Antonino90

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top