IF statement in a given Time frame

rockchalk33

Board Regular
Joined
Jan 12, 2016
Messages
111
Hey all, need a little help with some VBA. I have an RFID reader that logs information scanned into excel and this information is logged under Column A. The reader has 4 independent tags (1, 2, 3, and 4). The reader scans an area for these tags every 6 hours. Tag 1 is constantly logged every time the reader begins logging. The rest of the tags may get read or may not.

I currently have a Do Until loop going to the last logged tag in Column A. What I need is a code to find the greatest numbered tag (4 being the greatest) logged within 10 seconds of the last logged tag in Column A. The reason for this, is that when the RFID reader begins logging it effectively sends a pulse and inputs the tags into Excel in no particular order. I am simply looking for the highest numbered tag logged from the last pulse.

Thanks,

Devin
 

Excel Facts

Wildcard in VLOOKUP
Use =VLOOKUP("Apple*" to find apple, Apple, or applesauce

Forum statistics

Threads
1,221,469
Messages
6,160,027
Members
451,611
Latest member
PattiButche

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