+ Reply to Thread
Results 1 to 13 of 13

Return YES NO LATE from multiple tick or cross!

  1. #1
    Registered User
    Join Date
    05-04-2012
    Location
    Nottingham, England
    MS-Off Ver
    Excel 2003 and 2010
    Posts
    7

    Return YES NO LATE from multiple tick or cross!

    Hi All, Great site you got here....

    I need a little help from you 'Guru's' out there....please


    I want a cell to return a text of YES NO or LATE from a range of cells that we have selected with
    a tick, a cross, or a question mark (a,r,s in Marlett font) and also to calculate the amount outstanding from the cell next to it.

    I have taken extracts from my Rental Manager spreadsheet that I have created and put it into a Sample file

    I have used 2010 for the sample but the working spreadsheet will run on 2003, 2007 & 2010


    Many Many Thanks in Advance and I do hope it is possible!


    Mark
    Attached Files Attached Files

  2. #2
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: Return YES NO LATE from multiple tick or cross!

    For 2007+

    K16: ==LOOKUP(COUNTIFS($B$7:$B$19, "<=" & TODAY(), $E$7:$E$19, "r"), {0,1,2}, {"NO","LATE","YES"})
    L16: =SUMIFS($D$7:$D$19, $B$7:$B$19, "<=" & TODAY(), $E$7:$E$19, "r")


    You should retire the Excel 2003. For 2003:

    K16: =LOOKUP(SUMPRODUCT(--($B$7:$B$19 <=TODAY()), --($E$7:$E$19="r")), {0,1,2}, {"NO","LATE","YES"})
    L16: =SUMPRODUCT(--($B$7:$B$19<=TODAY()), --($E$7:$E$19="r"), $D$7:$D$19)
    _________________
    Microsoft MVP 2010 - Excel
    Visit: Jerry Beaucaire's Excel Files & Macros

    If you've been given good help, use the icon below to give reputation feedback, it is appreciated.
    Always put your code between code tags. [CODE] your code here [/CODE]

    ?None of us is as good as all of us? - Ray Kroc
    ?Actually, I *am* a rocket scientist.? - JB (little ones count!)

  3. #3
    Registered User
    Join Date
    05-04-2012
    Location
    Nottingham, England
    MS-Off Ver
    Excel 2003 and 2010
    Posts
    7

    Re: Return YES NO LATE from multiple tick or cross!

    Hi JBeaucaire,

    Thanks for the speeedy reply, however I can only get it to return NO and not YES or LATE however I alter E7 to E19

    Any Ideas

    Ps we are phasing 2003 out but still have a few stations to upgrade.

    Cheers
    Mark

  4. #4
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: Return YES NO LATE from multiple tick or cross!

    Your workbook with those formulas:
    Attached Files Attached Files

  5. #5
    Registered User
    Join Date
    05-04-2012
    Location
    Nottingham, England
    MS-Off Ver
    Excel 2003 and 2010
    Posts
    7

    Re: Return YES NO LATE from multiple tick or cross!

    Hi JBeaucaire, Cheers Thank You...

    I have transferred the code into my worksheet and I'm having the same problem...
    it has automatically put the code like this '1'!$K$29:$K$41... etc. etc.

    I have narrowed it down to the apostrophes probably causing the problem

    the pages in the workbook are Overview, 1, 2, 3, 4, 5, etc. etc. up to 50

    Any advice would be great

    Thanks Mark

  6. #6
    Registered User
    Join Date
    05-04-2012
    Location
    Nottingham, England
    MS-Off Ver
    Excel 2003 and 2010
    Posts
    7

    Re: Return YES NO LATE from multiple tick or cross!

    Just to add when I used your Sample2 xls file and split it over 2 sheets and altered the code it works fine

    attached is your altered file!

    I can email over my original if it helps

    I don't want to upload but I can if really necessary

    Cheers
    Mark
    Attached Files Attached Files

  7. #7
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: Return YES NO LATE from multiple tick or cross!

    yes, your uploaded file seems to work fine. So....?

  8. #8
    Registered User
    Join Date
    05-04-2012
    Location
    Nottingham, England
    MS-Off Ver
    Excel 2003 and 2010
    Posts
    7

    Re: Return YES NO LATE from multiple tick or cross!

    Quote Originally Posted by JBeaucaire View Post
    yes, your uploaded file seems to work fine. So....?
    I originally created this in 2003 so I wouldn't have any trouble going back from 2007 or 2010
    would that cause the problem?

    attached in the whole file if you wouldn't mind having a look for me!

    the password is "please"

    cheers

    Mark
    Last edited by MarkTheAccountant; 05-05-2012 at 03:48 PM.

  9. #9
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: Return YES NO LATE from multiple tick or cross!

    The formula doesn't work because the "date strings" in your column K aren't real dates, they are text. The drop downs are fine, but not all that necessary.

    1) Remove the data validation from those cells
    2) in K29: 9/1/2011 (formatted to display as Month Year, if you wish)
    3) in K30: =EOMONTH(K29,0)+1
    4) copy K30 down

    Now you have a "self-incrementing" list of real dates, so the formula on Overview sheet now shows this customer is in ARREARS.

  10. #10
    Registered User
    Join Date
    05-04-2012
    Location
    Nottingham, England
    MS-Off Ver
    Excel 2003 and 2010
    Posts
    7

    Re: Return YES NO LATE from multiple tick or cross!

    Thanks that brilliant.... You are a true Guru!!

    Is there a way to have the day populated in the same manner, because I know there going to ask!

    Is there any other advise you could give to hopefully make the site more 'unbreakable'

    I will do all the protection when its nearly ready (cells sheets etc.)

    Cheers

    Mark

    PS Just found your link to your site...I'll make a donation when I'm back at work to say thanks...

  11. #11
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: Return YES NO LATE from multiple tick or cross!

    Quote Originally Posted by MarkTheAccountant View Post
    Is there a way to have the day populated in the same manner, because I know there going to ask!

    Please elaborate.

  12. #12
    Registered User
    Join Date
    05-04-2012
    Location
    Nottingham, England
    MS-Off Ver
    Excel 2003 and 2010
    Posts
    7

    Re: Return YES NO LATE from multiple tick or cross!

    I've done the alterations as suggested and it now works fine.

    but if somebody enters say 14th April 2012 the following month shows as 1st May 2012 etc. etc

    Thanks
    Mark

  13. #13
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: Return YES NO LATE from multiple tick or cross!

    Ongoing rents are due on the first of the month. Your original sheet proved that since you didn't even want to include the actual dates. Why would you introduce further complexity?

    So you mentioned "Since they'll ask", to which I would say the answer is "Put in the 1st of the first month to be recorded on this sheet."

    As noted earlier, FORMAT those cells to be "MMMM YYYY" and it won't matter, they won't see the dates. But they should still put in the 1st for the first cell. You want the formulas on the other sheet to see the dates correctly.
    Last edited by JBeaucaire; 05-05-2012 at 06:42 PM.

+ 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