+ Reply to Thread
Results 1 to 9 of 9

function help-keeping data from true when false

  1. #1
    Registered User
    Join Date
    05-16-2006
    Posts
    18

    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
    Attached Files Attached Files

  2. #2
    Registered User
    Join Date
    05-16-2006
    Posts
    18
    anyone able to help?

  3. #3
    Registered User
    Join Date
    05-16-2006
    Posts
    18
    anyone able to help?

  4. #4
    Registered User
    Join Date
    05-16-2006
    Posts
    18
    anyone able to help?

  5. #5
    Pete_UK
    Guest

    Re: 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. #6
    Registered User
    Join Date
    05-16-2006
    Posts
    18
    here is the code

    Please Login or Register  to view this content.
    a3=year
    b11=month in number format
    a35:a59=list of names

    it can depend on month and year this function.

  7. #7
    Pete_UK
    Guest

    Re: 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. #8
    Registered User
    Join Date
    05-16-2006
    Posts
    18
    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?

  9. #9
    Registered User
    Join Date
    05-16-2006
    Posts
    18
    can anyone else help?

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1