Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3
Default how do I leave cell content unchanged if a condition is not met

I am trying to run a daily calculation that inputs figures depending on the
day of the week. I.E if its wednesday it adds figures to coloumn. If it is
not wednesday I want it to leave the coloumn alone leaving existing
information in the coloumn
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 6,953
Default how do I leave cell content unchanged if a condition is not met

Look at the weekday function.

--
Regards,
Tom Ogilvy


"darkelf26" wrote:

I am trying to run a daily calculation that inputs figures depending on the
day of the week. I.E if its wednesday it adds figures to coloumn. If it is
not wednesday I want it to leave the coloumn alone leaving existing
information in the coloumn

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3
Default how do I leave cell content unchanged if a condition is not me

Thanks Tom, I am already using the weekday function to determine whether or
not to add the figures into the chart, then it copies information from a
daily created cells. My problem here is I can get it to copy the cells across
to say tuesdays coloumn, then on wednesday it flls wednesdays coloumn,
however the script that filled tuesdays is now no longer valid (its not
tuesday) therefore it fills tuesdays cells with whatever i wrote as the
cndition of false (I.e null) is there a field I can enter as false that tells
the cell to keep what it already has until the next tuesday?

if the script returned a figure of 100 on tuesday I still want that cell to
read 100 until it is replaced on the following tuesday.

"Tom Ogilvy" wrote:

Look at the weekday function.

--
Regards,
Tom Ogilvy


"darkelf26" wrote:

I am trying to run a daily calculation that inputs figures depending on the
day of the week. I.E if its wednesday it adds figures to coloumn. If it is
not wednesday I want it to leave the coloumn alone leaving existing
information in the coloumn

  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 6,953
Default how do I leave cell content unchanged if a condition is not me

It sounds like your code is flawed.

Null is not a check for an empty cell or almost any other condition. Null
has very limited use in Excel as a general statement.

So, your code may not be making the correct determination and as a result is
performing the wrong action. Not being clairvoyant, however, I can only
guess.

--
Regards,
Tom Ogilvy




"darkelf26" wrote:

Thanks Tom, I am already using the weekday function to determine whether or
not to add the figures into the chart, then it copies information from a
daily created cells. My problem here is I can get it to copy the cells across
to say tuesdays coloumn, then on wednesday it flls wednesdays coloumn,
however the script that filled tuesdays is now no longer valid (its not
tuesday) therefore it fills tuesdays cells with whatever i wrote as the
cndition of false (I.e null) is there a field I can enter as false that tells
the cell to keep what it already has until the next tuesday?

if the script returned a figure of 100 on tuesday I still want that cell to
read 100 until it is replaced on the following tuesday.

"Tom Ogilvy" wrote:

Look at the weekday function.

--
Regards,
Tom Ogilvy


"darkelf26" wrote:

I am trying to run a daily calculation that inputs figures depending on the
day of the week. I.E if its wednesday it adds figures to coloumn. If it is
not wednesday I want it to leave the coloumn alone leaving existing
information in the coloumn

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
How Do I Condition A Entire Row, Based On The Content Of A Single Frustrated-Emmily New Users to Excel 6 November 6th 08 04:57 PM
copy row content from one worksheet to another, if a condition met Lorilenore Excel Worksheet Functions 2 May 24th 08 08:36 PM
How to keep a cell ref in formula unchanged when the ref cell move Clifton Ford Excel Discussion (Misc queries) 2 March 14th 06 04:55 PM
Formula and Condition for a Calculation to leave a zero if the res SSG Devine Excel Worksheet Functions 3 March 13th 06 06:55 PM
Leave the Cell unchanged Gerrym Excel Programming 2 November 29th 04 01:06 PM


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

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"