PC Review


Reply
Thread Tools Rate Thread

activate formula when adjacent cell populated

 
 
Simon
Guest
Posts: n/a
 
      5th May 2010
Dear All,
I have copied a simple formula (A1+1095) down the length of column B
(working with excel 2003). A1 contains a date, the formular in column B
produces a date 3 years later, with conditional formatting added to indicate
how close the future date is getting. The problem I have is that where there
is no date yet entered into a cell in column A, the remainder of column B
automatically displays 30/12/1902 and formats the cells red (for the rest of
the entire column). Is there a way to direct the formula in column B to only
become active once a date has been entered into the adjacent cell in column
A? - I was thinking along the lines of an IF statement or similar as I am
prohibitted from using a macro.
Advice gratefully recieved.
Simon.

 
Reply With Quote
 
 
 
 
Jacob Skaria
Guest
Posts: n/a
 
      5th May 2010
Hi Simon

Modify the formula to

=IF(A1,A1+1095,"")

--
Jacob (MVP - Excel)


"Simon" wrote:

> Dear All,
> I have copied a simple formula (A1+1095) down the length of column B
> (working with excel 2003). A1 contains a date, the formular in column B
> produces a date 3 years later, with conditional formatting added to indicate
> how close the future date is getting. The problem I have is that where there
> is no date yet entered into a cell in column A, the remainder of column B
> automatically displays 30/12/1902 and formats the cells red (for the rest of
> the entire column). Is there a way to direct the formula in column B to only
> become active once a date has been entered into the adjacent cell in column
> A? - I was thinking along the lines of an IF statement or similar as I am
> prohibitted from using a macro.
> Advice gratefully recieved.
> Simon.
>

 
Reply With Quote
 
Arvi Laanemets
Guest
Posts: n/a
 
      5th May 2010
Hi

=IF(A1="","",A1+1095)

Or
=IF(A1="","",DATEDIFF(YEAR(A1)+3,MONTH(A1),DAY(A1))


Arvi Laanemets


"Simon" <(E-Mail Removed)> kirjutas sõnumis news:
76234B60-F69D-432F-BCEF-(E-Mail Removed)...
> Dear All,
> I have copied a simple formula (A1+1095) down the length of column B
> (working with excel 2003). A1 contains a date, the formular in column B
> produces a date 3 years later, with conditional formatting added to
> indicate
> how close the future date is getting. The problem I have is that where
> there
> is no date yet entered into a cell in column A, the remainder of column B
> automatically displays 30/12/1902 and formats the cells red (for the rest
> of
> the entire column). Is there a way to direct the formula in column B to
> only
> become active once a date has been entered into the adjacent cell in
> column
> A? - I was thinking along the lines of an IF statement or similar as I am
> prohibitted from using a macro.
> Advice gratefully recieved.
> Simon.
>

 
Reply With Quote
 
Arvi Laanemets
Guest
Posts: n/a
 
      5th May 2010
Sorry, NOT Datediff!


=IF(A1="","",DATE(YEAR(A1)+3,MONTH(A1),DAY(A1))

"Arvi Laanemets" <(E-Mail Removed)> kirjutas sõnumis news:
(E-Mail Removed)...
> Hi
>
> =IF(A1="","",A1+1095)
>
> Or
> =IF(A1="","",DATEDIFF(YEAR(A1)+3,MONTH(A1),DAY(A1))
>
>
> Arvi Laanemets
>
>
> "Simon" <(E-Mail Removed)> kirjutas sõnumis news:
> 76234B60-F69D-432F-BCEF-(E-Mail Removed)...
>> Dear All,
>> I have copied a simple formula (A1+1095) down the length of column B
>> (working with excel 2003). A1 contains a date, the formular in column B
>> produces a date 3 years later, with conditional formatting added to
>> indicate
>> how close the future date is getting. The problem I have is that where
>> there
>> is no date yet entered into a cell in column A, the remainder of column B
>> automatically displays 30/12/1902 and formats the cells red (for the rest
>> of
>> the entire column). Is there a way to direct the formula in column B to
>> only
>> become active once a date has been entered into the adjacent cell in
>> column
>> A? - I was thinking along the lines of an IF statement or similar as I am
>> prohibitted from using a macro.
>> Advice gratefully recieved.
>> Simon.
>>

 
Reply With Quote
 
Pete_UK
Guest
Posts: n/a
 
      5th May 2010
Try this:

=IF(A1="","",A1+1095)

You may need to adjust your CF formula to avoid zero values.

Hope this helps.

Pete


On May 5, 11:50*am, Simon <Si...@discussions.microsoft.com> wrote:
> Dear All,
> I have copied a simple formula (A1+1095) down the length of column B
> (working with excel 2003). A1 contains a date, the formular in column B
> produces a date 3 years later, with conditional formatting added to indicate
> how close the future date is getting. The problem I have is that where there
> is no date yet entered into a cell in column A, the remainder of column B
> automatically displays 30/12/1902 and formats the cells red (for the restof
> the entire column). Is there a way to direct the formula in column B to only
> become active once a date has been entered into the adjacent cell in column
> A? - I was thinking along the lines of an IF statement or similar as I am
> prohibitted from using a macro.
> Advice gratefully recieved.
> Simon.


 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
formula to place real time in a cell when data entered in an adjacent cell JasonK Microsoft Excel Programming 10 8th Feb 2010 11:22 PM
formula for a cell which is blank returns populated cell =?Utf-8?B?R3JhY2V5MQ==?= Microsoft Excel Misc 1 2nd Feb 2007 09:17 AM
Payment cell populated based on date formula =?Utf-8?B?VG9ueUQ=?= Microsoft Excel Misc 6 31st Jan 2007 09:55 AM
Find a cell and then insert a formula into adjacent cell crowdx42 Microsoft Excel Programming 7 21st Aug 2006 02:53 PM
Formula refrencing cell with a value of adjacent cell =?Utf-8?B?TW9zaGUgUm9zZW5iZXJn?= Microsoft Excel Worksheet Functions 7 13th Oct 2004 06:49 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 10:04 PM.