Date IF / Lookup

Pippy79

Board Regular
Joined
Nov 18, 2021
Messages
90
Office Version
  1. 365
Platform
  1. Windows
hi,

i have a long list of dates which i want to spread horizontally. i want to look up in column A and populate the correct month with the exact date shown.

example below would be from the list in column A, in cell B3 it should read 25APR2023.

Thanks
ABCDEFG
1​
AprilMayJuneJulyAugSept
2​
8-Oct-23​
3​
25-Apr-23​
4​
6-Aug-23​
5​
19-Aug-23​
6​
29-Jun-23​
7​
10-Jun-23​
 

Excel Facts

Does the VLOOKUP table have to be sorted?
No! when you are using an exact match, the VLOOKUP table can be in any order. Best-selling items at the top is actually the best.
Upvote 0
Solution
My effort:
Book1
ABCDEFGH
1AprilMayJuneJulyAugSeptOctober
208-Oct-2325/04/2023 29/06/2023 06/08/2023 08/10/2023
325-Apr-2310/06/202319/08/2023
406-Aug-23
519-Aug-23
629-Jun-23
710-Jun-23
Sheet1
Cell Formulas
RangeFormula
B2:C2,E2,G2:H2,F2:F3,D2:D3B2=IFERROR(FILTER($A$2:$A$7,TEXT($A$2:$A$7,"mmm")=LEFT(B1,3)),"")


EDIT: Edited it to work with dates, i was working with text due to the way i pasted your data
 
Last edited:
Upvote 0
Glad we could help & thanks for the feedback.
 
Upvote 0

Forum statistics

Threads
1,223,903
Messages
6,175,286
Members
452,631
Latest member
a_potato

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