+ Reply to Thread
Results 1 to 10 of 10

Displaying cell depending on Date

  1. #1
    Registered User
    Join Date
    04-24-2007
    Posts
    6

    Displaying cell depending on Date

    My head hurts from working on this all day. I have a large spreadsheet and in the top left corner I need to show the percent of vehicles that are not working out of our whole pool. I have a function that detects the color of the cell (Red is broke) and counts the total of red cells and then divides it by the total giving the percent and it is in G118 for Jan 1/2007, H118 for Jan 2/2007 etc. I made a function that will count Julian days from Jan 1, so for today I get 114. I know I need to display G + 114 columns but have no idea how to get that column name from this and always display the current one in the corner. Help please.

  2. #2
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898
    If you want the address of the cell with the result you want, then perhaps?

    =ADDRESS(118,COLUMN(G1)+114)

    you can replace 114 with the function to calculate your Julian Date....
    Where there is a will there are many ways.

    If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below left corner

    Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.

  3. #3
    Registered User
    Join Date
    04-24-2007
    Posts
    6
    I tried what you said and just put it in as 114 for now to see if works and I get this $DQ$118 displayed in the cell. ANy ideas?

  4. #4
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898
    That gives you the address of the cell in row 118 that is 114 columns to the right of column G. Is that not what you wanted? Maybe I misinterpreted?

    Please elaborate on your needs, indicating expected results.

    Thanks.

  5. #5
    Registered User
    Join Date
    04-24-2007
    Posts
    6
    In the cell G118 is 37.5%, in cell H118 is 23.2%. What I want is to display the percent in cell A1 but which one depends on the date of today. So on Jan 1st it would show 37.5% in A1 and on Jan 2 it would show 23.2% and so on. I have figured out how to get the percent and I have figured out how to get a number that represents the amount of days past, since Jan 1. I do not know how to show the percent in the corner. What you gave me, seems to show the address of the cell, not the contents. Thanks for the help so far.

  6. #6
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898
    How about?

    =INDEX(118:118,COLUMN(G1)+114)

    again, replacing 114 with the appropriate function to get 114.

  7. #7
    Registered User
    Join Date
    04-24-2007
    Posts
    6
    For now I am leaving the 114 as not to further complicate this. I tried the index statement and it says 0 for a result. If you try this on a worksheet does it work for you? I mean put a value in G118 and use that index statement?

  8. #8
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898
    The formula I gave you should return the value found in $DQ$118 which is 114 cells right of G118. That is what I interpret your request to be. Am I getting it wrong?

  9. #9
    Registered User
    Join Date
    04-24-2007
    Posts
    6
    Duh, what a idiot. The value in that cell is 0. Thanks it works.

  10. #10
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898
    Great.

    You're welcome.

+ 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