ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   Using imported Query & Calculating Dates (https://www.excelbanter.com/excel-worksheet-functions/7641-using-imported-query-calculating-dates.html)

Woodkat

Using imported Query & Calculating Dates
 
When importing a query dates are entered in excell as text (YYYYMMDD). Is
there a way to control how the query imports the data? If not, I am having
difficulty creating a formula that would tell me which birthdays occur 2-3
weeks from today.

My old formula worked using the text import and converting the text column
to the correct date format:
=IF(AND(DATE(YEAR(TODAY()),MONTH(P2),DAY(P2))=TOD AY()+7,DATE(YEAR(TODAY()),MONTH(P2),DAY(P2))<=TODA Y()+14),"Send Card!","")). Any one have an idea?

Frank Kabel

Hi
you could use 'Data - Text to columns' afterwards to convert these
values to a real date value

--
Regards
Frank Kabel
Frankfurt, Germany

"Woodkat" schrieb im Newsbeitrag
...
When importing a query dates are entered in excell as text

(YYYYMMDD). Is
there a way to control how the query imports the data? If not, I am

having
difficulty creating a formula that would tell me which birthdays

occur 2-3
weeks from today.

My old formula worked using the text import and converting the text

column
to the correct date format:

=IF(AND(DATE(YEAR(TODAY()),MONTH(P2),DAY(P2))=TOD AY()+7,DATE(YEAR(TODA
Y()),MONTH(P2),DAY(P2))<=TODAY()+14),"Send Card!","")). Any one have
an idea?



All times are GMT +1. The time now is 11:21 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
ExcelBanter.com