ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   copy cell based on date (https://www.excelbanter.com/excel-worksheet-functions/150273-copy-cell-based-date.html)

Dreamstar_1961

copy cell based on date
 
what I'm trying to do is copy a cell to a different cell based on date (day),
A1 34 b1 todays date c1 copys only if todays say = 15th
I thought the formula woul look something like this =if(today()=day(15),a1,"")
but that don't work.
is this possiable at all?

Thanks


Rick Rothstein \(MVP - VB\)

copy cell based on date
 
what I'm trying to do is copy a cell to a different cell based on date
(day),
A1 34 b1 todays date c1 copys only if todays say = 15th
I thought the formula woul look something like this
=if(today()=day(15),a1,"")
but that don't work.
is this possiable at all?


TODAY is a date and DAY(15) is an error. You need to apply the DAY function
to TODAY() and then see if that is 15...

=IF(DAY(TODAY())=15,A1,"")

Rick


excelent

copy cell based on date
 
=IF(DAY(B1)=15,A1,"")


"Dreamstar_1961" skrev:

what I'm trying to do is copy a cell to a different cell based on date (day),
A1 34 b1 todays date c1 copys only if todays say = 15th
I thought the formula woul look something like this =if(today()=day(15),a1,"")
but that don't work.
is this possiable at all?

Thanks


Dreamstar_1961

copy cell based on date
 
I worked out the formla but noe need to know how to stop an if fuction from
show false if it don't match and leave what was there in the first place.

"Dreamstar_1961" wrote:

what I'm trying to do is copy a cell to a different cell based on date (day),
A1 34 b1 todays date c1 copys only if todays say = 15th
I thought the formula woul look something like this =if(today()=day(15),a1,"")
but that don't work.
is this possiable at all?

Thanks


Rick Rothstein \(MVP - VB\)

copy cell based on date
 
what I'm trying to do is copy a cell to a different cell based on date
(day),
A1 34 b1 todays date c1 copys only if todays say = 15th
I thought the formula woul look something like this
=if(today()=day(15),a1,"")
but that don't work.
is this possiable at all?


I worked out the formla but noe need to know how to stop an if fuction from
show false if it don't match and leave what was there in the first place.


Leave what was where in the first place? You can't have a formula and a
value in the same cell.... if you have a formula, it must generate the
cell's content.

Rick



All times are GMT +1. The time now is 03:19 PM.

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