Show reference value in table based on date-year

crackers707

New Member
Joined
Nov 28, 2018
Messages
3
Hi there,

I have been trying to find a solution everywhere, but have had no luck thus far, so hoping someone here can help me out!

I have two tables that sit alongside one another. One table contains the data with a date where an event occurred. This data is 5000 rows worth. The second table shows a reference value for each month-year and shows numbers for two years (24 rows worth). What I need to be able to do is put a formula in C2 and below that looks in A2 and matches the month-year in E2-E26 and then shows the number in the respective F2-F26 when the month and year matches.

Can this be done? A mockup of my situation below.

ABCDEF
1DateDescriptionNumbers during this monthTotal numbers for the monthNumbers
201/01/2018X= ......Jan-201840,000
306/13/2018XFeb-201820,000
408/11/2018XMarch-201855,000
506/16/2018XApril-201833,000

<tbody>
</tbody>

Any help would be amazing!
 

Excel Facts

Can you sort left to right?
To sort left-to-right, use the Sort dialog box. Click Options. Choose "Sort left to right"
Hi,

You could test following formua in cell C2 :

Code:
=INDEX($F$2:$F$5,MATCH(EOMONTH(A2,-1)+1,$E$2:$E$5,0))

Hope this will help
 
Upvote 0
Hi,

You could test following formua in cell C2 :

Code:
=INDEX($F$2:$F$5,MATCH(EOMONTH(A2,-1)+1,$E$2:$E$5,0))

Hope this will help

Thanks for the help. Unfortunately, it only works where the dates in column A&E are the same. Just need them to match on month and year only. ANy other ideas?
 
Upvote 0
Hello again,

Sorry ... but have you tried the formula ... ???

The EoMonth bit is added in order to make sure the date in Column A is adjusted to the first of the month ...which seems to be in line with what you have in Column E ...
 
Upvote 0
Hello again,

Sorry ... but have you tried the formula ... ???

The EoMonth bit is added in order to make sure the date in Column A is adjusted to the first of the month ...which seems to be in line with what you have in Column E ...

Ah thanks, my reference list was wrong, but with some fine tuning I think this has worked. Thanks so much!!
 
Upvote 0
Glad to hear you could fix your problem ... :)
 
Upvote 0

Forum statistics

Threads
1,216,099
Messages
6,128,819
Members
449,469
Latest member
Kingwi11y

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