Searching for a common number with a vlookup

Graham C1600

Board Regular
Joined
Feb 17, 2018
Messages
96
Office Version
  1. 365
Hi,

I've been using a Vlookup for a while now and it has worked really well so far and given men the results I expect. However the data in the column of the Vlookup range has now changed slightly and i'm needing to find the most common number from the column. The data looks a little like below.[TABLE="width: 200"]
<tbody>[TR]
[TD="align: center"]Batch 60[/TD]
[TD="align: center"]05/04/2018[/TD]
[/TR]
[TR]
[TD="align: center"]Batch 61[/TD]
[TD="align: center"]07/04/2018[/TD]
[/TR]
[TR]
[TD="align: center"]Batch 62[/TD]
[TD="align: center"]07/04/2018[/TD]
[/TR]
[TR]
[TD="align: center"]Batch 63[/TD]
[TD="align: center"]07/04/2018[/TD]
[/TR]
</tbody>[/TABLE]

On another tab i also have the first column data as above so Batch 60 through to 63. I have a field on this tab where i have been pulling the date from the above tab into this tab using a simple vlookup. The data in the second column as above is now starting to change and i am getting mixed dates thrown at me but i only need to capture the most common date. If i now use the vlookup it returns the date in the top box. How can i use a vlookup to find the most common data in the column ?

Any ideas ?

Many thanks
 

Excel Facts

Control Word Wrap
Press Alt+Enter to move to a new row in a cell. Lets you control where the words wrap.
You don't want to use VLOOKUP for this. In fact, you don't want to use VLOOKUP ever, for anything...

If you want to find the most common date then you can use =MODE.SNGL(list of dates) because dates are numbers

If you want to find corresponding values in lists, then instead of =VLOOKUP (lookup value, array, column, false) use =INDEX(values column in array, MATCH(lookup value, lookup column in array, 0))
 
Upvote 0

Forum statistics

Threads
1,224,823
Messages
6,181,184
Members
453,020
Latest member
Mohamed Magdi Tawfiq Emam

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