Extract vlook up dates

doriannjeshi

Board Regular
Joined
Apr 5, 2015
Messages
214
Office Version
  1. 2019
Platform
  1. Windows
Hello,

I need to look up dates for a table in this format!

pyth new.xlsb
IJK
11940dateSign
2Jan 1 – Jan 31 Scorpio1/15/1941?
3Feb 1 – Mar 25 Sagittarius
4Mar 26 – Jun 5 Capricorn
5June 6 – Sep 28 Sagittarius
6Sep 29 – Nov 29 Capricorn
7Nov 30 – Dec 31 Aquarius
81941
9Jan 1 – Jan 20 Aquarius
10Jan 21 – Mar 7 Pisces
11Mar 8 – Apr 17 Aries
12Apr 18 – May 24 Taurus
13May 25 – Jun 28 Gemini
14Jun 29 – Jul 31 Cancer
15Aug 1 – Sep 1 Leo
16Sep 2 – Oct 5 Virgo
17Oct 6 – Nov 10 Libra
18Nov 11 Scorpio
19Dec 20 Sagittarius
201942
21Jan 1 – Feb 2 Sagittarius
22Feb 3 – Mar 26 Capricorn
23Mar 27 – Dec 10 Aquarius
24Dec 11 – Dec 31 Pisces
251943
26Jan 1 – Jan 27 Pisces
27Jan 28 – Mar 7 Aries
28Mar 8 – Apr 11 Taurus
29Apr 12 – May 14 Gemini
30May 15 – Jun 16Cancer
31Jun 17 – Jul 19 Leo
32Jul 20 – Aug 23Virgo
33Aug 24 – Sep 30 Libra
34Oct 1 – Nov 11Scorpio
35Nov 12 – Dec 27 Sagittarius
36Dec 28 – Dec 31 Capricorn
371944
38Jan 1 – Feb 15 Capricorn
39Feb 16 – Apr 8 Aquarius
40Apr 9 – Jun 4 Pisces
41Jun 5 – Aug 8 Aries
42Aug 9 – Nov 6 Taurus
43Nov 7 – Dec 31 Aries
441945
eros&psyche
 
The 2 errors in the first table are because the months are not abbreviated to 3 letters.

Can you please post the other two again but use Mini Sheet so that I can see the rows/columns and the formulas?
 
Upvote 0

Excel Facts

Convert text numbers to real numbers
Select a column containing text numbers. Press Alt+D E F to quickly convert text to numbers. Faster than "Convert to Number"
Sorry for the not abbreviated months!

here are the only cases:

pyth new.xlsb
GH
5#N/AJan 1 – Aries
6#N/AJan 1 Capricorn
Sheet2
Cell Formulas
RangeFormula
G5:G6G5=DATEVALUE(MID(H5,5,2)&LEFT(H5,3)&LOOKUP(9999,H$1:H4))
Cells with Conditional Formatting
CellConditionCell FormatStop If True
G6Other TypeColor scaleNO
G5Other TypeColor scaleNO
 
Upvote 0
Is there a year above that in column H? If so, there shouldn't be a problem.

22 12 03.xlsm
GH
41966
51/01/66Jan 1 – Aries
61/01/66Jan 1 Capricorn
Lookup 2
Cell Formulas
RangeFormula
G5:G6G5=DATEVALUE(MID(H5,5,2)&LEFT(H5,3)&LOOKUP(9999,H$1:H4))


However, if you were looking up Jan 1 for that year I'm not sure what logic you would use to decide which of those 2 signs to return since they both belong to Jan 1. :unsure:
 
Upvote 0
I cut pasted the dates that belong to diferent years , and yes both dates have a year , and then probably is my date system setting that causes this
 
Upvote 0
I cut pasted the dates that belong to diferent years , and yes both dates have a year , and then probably is my date system setting that causes this
If you still need help with this then please post some small sample data from columns G:H, starting from row 1 & including the formula used in column G.
 
Upvote 0

Forum statistics

Threads
1,214,583
Messages
6,120,383
Members
448,955
Latest member
BatCoder

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