+ Reply to Thread
Results 1 to 8 of 8

Conditional formatting - Transfer (original) code to another tab sheet

  1. #1
    Registered User
    Join Date
    01-14-2019
    Location
    Holland
    MS-Off Ver
    Enterprsie
    Posts
    4

    Conditional formatting - Transfer (original) code to another tab sheet

    Hello,

    Nice to meet you all. I'm new to the forum and I have a question about conditional formatting and I was wondering if you could help me with this..

    I have two tab sheets. I have in the first tab sheet a cell (B21) with a the following conditional formatting code: =ISNUMBER(B21)..then the cell will turn green if a number is filled in.
    What I want is that cell A1 in the second tab sheet will also turn green if a number is added in cell B21 from tab sheet 1

    I can copy the cell and then paste it in the second tab sheet but then the conditional code in the A1 cell is =ISNUMBER(A1) but I want it to refer to tabsheet 1, which is =ISNUMBER(B21)
    Anyone know how to do this?

    Thanks, Vincent

  2. #2
    Forum Expert etaf's Avatar
    Join Date
    10-22-2004
    Location
    Wittering, West Sussex, UK
    MS-Off Ver
    365 (Mac OSX) (16.83 (24031120))
    Posts
    8,732

    Re: Conditional formatting - Transfer (original) code to another tab sheet

    in conditional formatting for A1 on 2nd sheet
    put the formula
    =ISNUMBER(Sheet1!B21)
    and format cell to colour fill you want
    now it will reference the sheet 1 ell
    Wayne
    if my assistance has helped, and only if you wish to , there is an "* Add Reputation" on the left hand side - you can add to my reputation here

    If you have a solution to your thread - Please mark your thread solved do the following: >
    Select Thread Tools-> Mark thread as Solved. To undo, select Thread Tools-> Mark thread as Unsolved.

  3. #3
    Registered User
    Join Date
    01-14-2019
    Location
    Holland
    MS-Off Ver
    Enterprsie
    Posts
    4

    Re: Conditional formatting - Transfer (original) code to another tab sheet

    Yes thanks. Now i have created a new sheet with one more problem. Do you happen to know how to solve?

    I have attached the form. Problem is that Cell C2 "overview" is turning green when it should not because the date in not filled in.
    Attached Files Attached Files

  4. #4
    Forum Expert etaf's Avatar
    Join Date
    10-22-2004
    Location
    Wittering, West Sussex, UK
    MS-Off Ver
    365 (Mac OSX) (16.83 (24031120))
    Posts
    8,732

    Re: Conditional formatting - Transfer (original) code to another tab sheet

    B2 is not blank
    ='Input form'!D3

  5. #5
    Registered User
    Join Date
    01-14-2019
    Location
    Holland
    MS-Off Ver
    Enterprsie
    Posts
    4

    Re: Conditional formatting - Transfer (original) code to another tab sheet

    Yes, I know. But when I remove B17 from tabsheet "input form" the code in cell B2 stays the same ='Input form'!D3 but then the green color is gone (in B2)

    And when you for instance fill in 20 aug 2018 in B11 tabsheet "input form", cell B2 in the first tabsheet will color red..

  6. #6
    Forum Expert etaf's Avatar
    Join Date
    10-22-2004
    Location
    Wittering, West Sussex, UK
    MS-Off Ver
    365 (Mac OSX) (16.83 (24031120))
    Posts
    8,732

    Re: Conditional formatting - Transfer (original) code to another tab sheet

    because that makes input M3 blank and then the cell - and because K2 is blank then the white conditional formatting is applied - which is
    ISNUMBER(K2)
    so that rule applies
    if K2 is not blank - then the next rule is to test B2 as blank - BUT it has a formula in and so is NOT blank and isnumber and so turns green

  7. #7
    Registered User
    Join Date
    01-14-2019
    Location
    Holland
    MS-Off Ver
    Enterprsie
    Posts
    4

    Re: Conditional formatting - Transfer (original) code to another tab sheet

    Thanks for your reply! I don't understand it yet..
    What do I have to change to make it work?


    1 When "Teleconferene" is filled in = always green

    2 When "sub form received" is filled in with a date, the
    other ones should also turn green when a date is filled in.
    When e.g. "information pack" is not filled in with a date it should stay blank
    (when "Sub form received" is filled in with a date)

    3 For "information pack" and "invitation pack":
    When sent (from date today)
    15 days after today = Blue
    30 days after today = Yellow
    150 days after today = Purple

  8. #8
    Forum Expert etaf's Avatar
    Join Date
    10-22-2004
    Location
    Wittering, West Sussex, UK
    MS-Off Ver
    365 (Mac OSX) (16.83 (24031120))
    Posts
    8,732

    Re: Conditional formatting - Transfer (original) code to another tab sheet

    i'm not completely clear of your RULES
    other ones should also turn green when a date is filled in.
    which cells do you want green based on what cells with dates?

    if you could say everything you needed , i would or others help

    for example

    Cell a2 green if - "Teleconferene" has a date OR if ........ OR if .......

    For 3
    For "information pack" and "invitation pack": B2 AND H2 not blank AND ???
    Where is When SENT

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. [SOLVED] VBA code, select conditional formatting content and transpose Sorted to other sheet
    By david gonzalez in forum Excel Programming / VBA / Macros
    Replies: 23
    Last Post: 11-29-2014, 10:00 PM
  2. [SOLVED] conditional formatting can not keep original colour
    By cfinch100 in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 05-27-2014, 01:33 PM
  3. [SOLVED] Code to transfer latest entry from sheet 'Account' to sheet 'Summary' automatically
    By mukeshbaviskar in forum Excel Programming / VBA / Macros
    Replies: 13
    Last Post: 01-30-2014, 08:56 PM
  4. Copy/Paste Referencing Only Original Cell (Conditional Formatting)
    By JONBOY666 in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 04-30-2013, 06:26 PM
  5. [SOLVED] Active sheet shifts back to original sheet when executing code
    By pcdog in forum Excel Programming / VBA / Macros
    Replies: 20
    Last Post: 10-22-2012, 11:07 AM
  6. Code only works on a copy of the original sheet
    By timmtamm in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 06-19-2012, 01:07 PM
  7. Replies: 2
    Last Post: 10-24-2011, 12:06 PM

Tags for this Thread

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