How to match quarter data with the correct quarter?

Waimea

Active Member
Joined
Jun 30, 2018
Messages
465
Office Version
  1. 365
Platform
  1. Windows
Hi,

I have a data table with 3 columns, name, value and year and quarter.

NameValueYear & quarter
Event A502021 Q1
Event B452021 Q3
Event C522021 Q4
Event D492022 Q2

And I have a table with timevalues:

Timevalue
2021 Q1
2021 Q2
2021 Q3
2021 Q4
2022 Q1
2022 Q2
2022 Q3

How can I in a easy way (with VBA) place the events at the right place in my timetable?

TimevalueNameValue
2021 Q1Event A50
2021 Q2
2021 Q3Event B45
2021 Q4Event C52
2022 Q1
2022 Q2Event D49

All suggestions are very welcome!
 

Excel Facts

Lock one reference in a formula
Need 1 part of a formula to always point to the same range? use $ signs: $V$2:$Z$99 will always point to V2:Z99, even after copying
TimevalueNameValue
2021 Q1Event A50
2021 Q2Event B46
2021 Q3Event C39
2021 Q4Event D41
2022 Q1Event E48
2022 Q2
2022 Q3Event F51
2022 Q4
2023 Q1Event G48
2023 Q2
2023 Q3
This is the expected result, event D is changed from Q3 to Q4.
 
Upvote 0

Forum statistics

Threads
1,214,653
Messages
6,120,751
Members
448,989
Latest member
mariah3

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