ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   Selecting data within a date range (https://www.excelbanter.com/excel-worksheet-functions/43434-selecting-data-within-date-range.html)

mtaylor

Selecting data within a date range
 

Can you please help!?

I have numerical data within 3 cells x,y & z

I then have a separate cell (a) which i need to display either the info
in cells x,y & z depending on the date.

For example:-
I need the info in cell x to be displayed in cell 'a' between 01/09/05
and 10/09/05
I need the info in cell y to be displayed in cell 'a' between 11/09/05
and 13/09/05
I need the info in cell z to be displayed in cell 'a' between 14/09/05
and 19/09/05

The date the sheet is accessed (TODAY) will determine what info is
displayed in cell 'a'.

Is it possible to create a formula for this?

Thanks


--
mtaylor
------------------------------------------------------------------------
mtaylor's Profile: http://www.excelforum.com/member.php...o&userid=26871
View this thread: http://www.excelforum.com/showthread...hreadid=401084


Bob Phillips

I am not sure what cell you want to test to be between those dates, so I
have assumed B1 in this formula

=IF(B1<=TODAY()+9,X1,IF(B1<=TODAY()+12,Y1,IF(B1<=T ODAY()+18,Z1,"")))

--

HTH

RP
(remove nothere from the email address if mailing direct)


"mtaylor" wrote in
message ...

Can you please help!?

I have numerical data within 3 cells x,y & z

I then have a separate cell (a) which i need to display either the info
in cells x,y & z depending on the date.

For example:-
I need the info in cell x to be displayed in cell 'a' between 01/09/05
and 10/09/05
I need the info in cell y to be displayed in cell 'a' between 11/09/05
and 13/09/05
I need the info in cell z to be displayed in cell 'a' between 14/09/05
and 19/09/05

The date the sheet is accessed (TODAY) will determine what info is
displayed in cell 'a'.

Is it possible to create a formula for this?

Thanks


--
mtaylor
------------------------------------------------------------------------
mtaylor's Profile:

http://www.excelforum.com/member.php...o&userid=26871
View this thread: http://www.excelforum.com/showthread...hreadid=401084





All times are GMT +1. The time now is 06:45 PM.

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