Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
jay d
 
Posts: n/a
Default function help-keeping data from true when false


hey

a function i have counts a list of names if the logical test is true,
but if the logical test is false, how would i get it to keep the result
it had from when it was true?

eg. if the month and year is equal to the current month and year,
perform action, if not, keep the result from the true test.

it is column C that has this function in. at the moment, in the false
test, the function looks at the above cell, i know this is wrong.

i have attached an example doc to explain.

thanks

Jamie


+-------------------------------------------------------------------+
|Filename: Book.zip |
|Download: http://www.excelforum.com/attachment.php?postid=4767 |
+-------------------------------------------------------------------+

--
jay d
------------------------------------------------------------------------
jay d's Profile: http://www.excelforum.com/member.php...o&userid=34487
View this thread: http://www.excelforum.com/showthread...hreadid=542487

  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
jay d
 
Posts: n/a
Default function help-keeping data from true when false


anyone able to help?


--
jay d
------------------------------------------------------------------------
jay d's Profile: http://www.excelforum.com/member.php...o&userid=34487
View this thread: http://www.excelforum.com/showthread...hreadid=542487

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
jay d
 
Posts: n/a
Default function help-keeping data from true when false


anyone able to help?


--
jay d
------------------------------------------------------------------------
jay d's Profile: http://www.excelforum.com/member.php...o&userid=34487
View this thread: http://www.excelforum.com/showthread...hreadid=542487

  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
jay d
 
Posts: n/a
Default function help-keeping data from true when false


anyone able to help?


--
jay d
------------------------------------------------------------------------
jay d's Profile: http://www.excelforum.com/member.php...o&userid=34487
View this thread: http://www.excelforum.com/showthread...hreadid=542487

  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Pete_UK
 
Posts: n/a
Default function help-keeping data from true when false

Many contributors are reluctant to open an unknown file - can you try
to describe your problem more fully here, with a copy of the formula
you are using now?

Pete



  #6   Report Post  
Posted to microsoft.public.excel.worksheet.functions
jay d
 
Posts: n/a
Default function help-keeping data from true when false


here is the code


Code:
--------------------
=IF(YEAR(TODAY())=$A$3,IF(MONTH(TODAY())=$B11,COUN TA($A$35:$A$59),0),$C10)
--------------------


a3=year
b11=month in number format
a35:a59=list of names

it can depend on month and year this function.


--
jay d
------------------------------------------------------------------------
jay d's Profile: http://www.excelforum.com/member.php...o&userid=34487
View this thread: http://www.excelforum.com/showthread...hreadid=542487

  #7   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Pete_UK
 
Posts: n/a
Default function help-keeping data from true when false

I still don't understand what it is you want to do. If you want the
value_when_true to show even if the condition is false, then you don't
need a condition, so you could just have:

=COUNTA($A$35:$A$59)

I'm not sure if this helps.

Pete

  #8   Report Post  
Posted to microsoft.public.excel.worksheet.functions
jay d
 
Posts: n/a
Default function help-keeping data from true when false


unfortunately that does not work. as the list of names changes each
month. so if i did a counta function, the previous months would
change.

eg jan = 6 people
feb = 4 people
mar = 3 people

so when the month and year is current, add the list, if not keep the
total people in the cell from the month when it was true.

does this help?


--
jay d
------------------------------------------------------------------------
jay d's Profile: http://www.excelforum.com/member.php...o&userid=34487
View this thread: http://www.excelforum.com/showthread...hreadid=542487

  #9   Report Post  
Posted to microsoft.public.excel.worksheet.functions
jay d
 
Posts: n/a
Default function help-keeping data from true when false


can anyone else help?


--
jay d
------------------------------------------------------------------------
jay d's Profile: http://www.excelforum.com/member.php...o&userid=34487
View this thread: http://www.excelforum.com/showthread...hreadid=542487

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
List date adjacent to duplicates? smoore Excel Worksheet Functions 12 February 27th 06 03:43 PM
ranking query JaimeTimbrell Excel Discussion (Misc queries) 2 February 16th 06 08:09 AM
First part of "IF" function returns false even if true. ?? Bill R Excel Worksheet Functions 4 September 5th 05 08:11 PM
Pulling data from 1 sheet to another Dave1155 Excel Worksheet Functions 1 January 12th 05 05:55 PM
Grand Totals @ Same Place Amber M Excel Worksheet Functions 2 December 30th 04 07:13 PM


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

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

About Us

"It's about Microsoft Excel"