...Format the dates in column G so they all look like G1-G4 and G25-G28 and not like column H?Click and highlight all the cells you want to format, go to the NUMBERS block on the Home tab, click the down arrow until you get the dialog box. Click "CUSTOM" then you can type the format into the blank box at the top under TYPE:. I usually like my dates to look formal (i.e. 01/01/2016). to get this, type mm/dd/yyyy. You can use this for any format. If you want to delete the "0" in from of the month and day and want two digit year then type m/d/yy. There are also examples you can choose from if you scroll down the list. It has dates with times, dates with day of the week, etc.
Hi Eloïse !
When a date is a real one (as number, not text like G5-G24),
you just have to format cell back to General …
If you test on an empty column, no issue …
But your column H has one? one what?, so the question how dates were populated ? Dates in Column H were copied and pasted.
There is a formula under Column G5: ...and down...
=IF(H5<>"N/A",H5,IF(H6<>"N/A",H6,IF(H7<>"N/A",H7,IF(H8<>"N/A",H8,IF(H9<>"N/A",H9,IF(H10<>"N/A",H10,IF(H11<>"N/A",H11,IF(H12<>"N/A",H12,IF(H13<>"N/A",H13,H14)))))))))
Anyway, for both columns G & H, jindon already gave you the path !
Please check the attachment as some worked and some didn't.1) Select G5:G24
2) Go to [TextToColumns] and hit [Next] [Next]
3) Choose [Date] and [MYD] from the list then [Finish]
Should give you what you want.
Please see my reply to jindon. Thanks.Hi Eloïse !
When a date is a real one (as number, not text like G5-G24),
you just have to format cell back to General …
If you test on an empty column, no issue …
But your column H has one, so the question how dates were populated ?
Anyway, for both columns G & H, jindon already gave you the path !
...Format the dates in column G so they all look like G1-G4 and G25-G28 and not like column H?As per upload?
Do you want to keep the formula intact? Yes, I need to keep the formula intact.
If no, just copy the questioned range and paste as Value and then follow the step I have already posted.
Select MDY instead of DMY.
one what ?
THANK YOU!=IFERROR(INT(IF(H4<>"N/A",H4,IF(H5<>"N/A",H5,IF(H6<>"N/A",H6,IF(H7<>"N/A",H7,IF(H8<>"N/A",H8,IF(H9<>"N/A",H9,IF(H10<>"N/A",H10,IF(H11<>"N/A",H11,IF(H12<>"N/A",H12,H13)))))))))),DATE(RIGHT(H4,4),LEFT(H4,2),MID(H4,4,2)))
In other words, force the text data to numerical data?Hi,
Just multiply the number converted into general category by 1 and you will get the desired result.
Converting the data into numerical format will give the same result as u had posted.You will have to multiply/divide it by 1.In other words, force the text data to numerical data?
I spoke too soon. Your formula changed the dates to numerical numbers (good), but it seemed to nullify the elimination of the N/A text which was the original formula. Any suggestions?=IFERROR(INT(IF(H4<>"N/A",H4,IF(H5<>"N/A",H5,IF(H6<>"N/A",H6,IF(H7<>"N/A",H7,IF(H8<>"N/A",H8,IF(H9<>"N/A",H9,IF(H10<>"N/A",H10,IF(H11<>"N/A",H11,IF(H12<>"N/A",H12,H13)))))))))),DATE(RIGHT(H4,4),LEFT(H4,2),MID(H4,4,2)))
See attachment with updated formula. It appears to be the same result. The N/As are not resolved. I appreciate your efforts.G1:
=IFERROR(INT(INDEX(H$1:H$21,MIN(IF(NOT(ISERROR(H1:H$21)),ROW(H1:H$21))),)),DATE(RIGHT(INDEX(H$1:H$21,MIN(IF(NOT(ISERROR(H1:H$21)),ROW(H1:H$21))),),4),LEFT(INDEX(H$1:H$21,MIN(IF(NOT(ISERROR(H1:H$21)),ROW(H1:H$21))),),2),MID(INDEX(H$1:H$21,MIN(IF(NOT(ISERROR(H1:H$21)),ROW(H1:H$21))),),4,2)))
Confirm with Ctrl + Shift + Enter (Array formula entry)
then copy down...
Hope this works