Dates in "General" Format

Denny57

Board Regular
Joined
Nov 23, 2015
Messages
246
Office Version
  1. 365
Platform
  1. Windows
Format dates as General

I am hoping that there is a method that will allow a list of consecutive dates (an entire Year) to be stored as "General" format in a single column. This detail is to be the VLOOKUP key in a worksheet containing various pre-determined pieces of information.

I have opted to have date information entered into a User Form using 3 separate ComboBoxes (Date, Month & Year) which are then joined using =TEXTJOIN(" ",TRUE,A2,B2,C2) or =TEXTJOIN("/",TRUE,A2,B2,C2) where the target cell requires "General" format. This detail is used to lookup the addditional information

It seems that however I set the format of a cell in the look up worksheet, if the detail looks like a date then excel automatically changes the format and the style.

If I place an apostrophe before the date then VLOOKUP cannot find a match.

Is there a solution or is this a default process
 

Excel Facts

Wildcard in VLOOKUP
Use =VLOOKUP("Apple*" to find apple, Apple, or applesauce
which are then joined using =TEXTJOIN(" ",TRUE,A2,B2,C2) or =TEXTJOIN("/",TRUE,A2,B2,C2)
Hi, I'd suggest that you "join" them like this instead =DATE(C2,B2,A2) and then use real dates everywhere rather than text that looks like a date.
 
Upvote 0

Forum statistics

Threads
1,224,812
Messages
6,181,083
Members
453,021
Latest member
Justyna P

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