+ Reply to Thread
Results 1 to 10 of 10

Same Ref cell return diff values

  1. #1
    Forum Contributor
    Join Date
    10-09-2006
    Posts
    212

    Same Ref cell return diff values

    hi there 1 sheet. In cell A2 I want to enter a day of the week and have other cells use that as a reference to return data to its cell. E.,g
    Please Login or Register  to view this content.
    The day Tuesday has a differnent set of colors for 1, 2 and 3.

  2. #2
    Forum Contributor
    Join Date
    03-14-2006
    Location
    Pakistan
    Posts
    1,791

    Lightbulb

    Quote Originally Posted by Martindelica
    hi there 1 sheet. In cell A2 I want to enter a day of the week and have other cells use that as a reference to return data to its cell. E.,g
    Please Login or Register  to view this content.
    The day Tuesday has a differnent set of colors for 1, 2 and 3.
    select cell in col B and go to Format > Conditional format
    and set options as follows
    Formula is: $A$1="Monday" and choose Red colour from Format tab
    add>>
    Formula is: $A$1="Tuesday" and choose other colour from Format tab

    select cell in column C and in cond. format set:
    Formula is: $A$1="Monday" and choose Blue colour from Format tab
    add>>
    Formula is: $A$1="Tuesday" and choose other colour from Format tab

    in the same way apply cond. format for cell in col C

  3. #3
    Forum Contributor
    Join Date
    10-09-2006
    Posts
    212

    Thumbs up

    I will try but looking at your post my sheet might look messy with colored cells all over the place. I hope I can do what you said, but have it return the text. will it work the same for text?

  4. #4
    Forum Contributor
    Join Date
    03-14-2006
    Location
    Pakistan
    Posts
    1,791

    Lightbulb

    Quote Originally Posted by Martindelica
    I will try but looking at your post my sheet might look messy with colored cells all over the place. I hope I can do what you said, but have it return the text. will it work the same for text?
    this is what you asked for. obviously each cell will have a colour according to the day mentioned.

  5. #5
    Forum Contributor
    Join Date
    10-09-2006
    Posts
    212
    Sorry for the misunderstanding. I should have stated NOT to return the color as opposed to the text. Is there a formula that will return the text as in the example?

    Thanks.

  6. #6
    Forum Contributor
    Join Date
    03-14-2006
    Location
    Pakistan
    Posts
    1,791

    Lightbulb

    Quote Originally Posted by Martindelica
    Sorry for the misunderstanding. I should have stated NOT to return the color as opposed to the text. Is there a formula that will return the text as in the example?

    Thanks.
    in B1

    =if(A1="Monday","Red",if(A1="Tuesday","other",""))

    same function in C1 but with following change

    =if(A1="Monday","Blue",if(A1="Tuesday","other",""))

    in D1

    =if(A1="Monday","Yellow",if(A1="Tuesday","other",""))

    replace the text "other" with colour name for Tuesday

  7. #7
    Forum Contributor
    Join Date
    10-09-2006
    Posts
    212
    Thanks much. WORKED.

  8. #8
    Forum Contributor
    Join Date
    03-14-2006
    Location
    Pakistan
    Posts
    1,791

    Lightbulb

    Quote Originally Posted by Martindelica
    Thanks much. WORKED.
    you're welcome.

  9. #9
    Forum Expert
    Join Date
    01-12-2007
    Location
    New Jersey
    Posts
    2,127
    If you dont want to use if statements, you can set up a table on a different page. Then setup a lookup on an entry page.

    See attached.
    Attached Files Attached Files

  10. #10
    Forum Contributor
    Join Date
    10-09-2006
    Posts
    212

    Thumbs up

    Very educational, I will definitely use this formula in the future once I have familiarized myself more with the functions. Thanks for the input.

+ 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