+ Reply to Thread
Results 1 to 10 of 10

Conditional Formatting

  1. #1
    Registered User
    Join Date
    10-31-2011
    Location
    Singapore
    MS-Off Ver
    Microsoft 365 (Windows 10)
    Posts
    62

    Conditional Formatting

    Hi all,

    I need help to format a row of data given the input of a specific letter in a specific cell.

    For example, in Column W i have a decision to make: Yes, Maybe, No.

    Depending on the letter I write in this cell, (Y for yes, M for maybe, and N for no), i would like the following to happen:

    Y formats the row, column C to L, GREEN
    M formats the row, column C to L, YELLOW
    N formats the row , column C to L, YELLOW

    The letter i'm writing in always in Column W for the corresponding action to be taken on that row.

    I've tried using conditional formatting function, but I think this requires a VBA.


    Thanks!!!!

  2. #2
    Forum Expert Fotis1991's Avatar
    Join Date
    10-11-2011
    Location
    Athens(The homeland of the Democracy!). Greece
    MS-Off Ver
    Excel 1997!&2003 & 2007&2010
    Posts
    13,744

    Re: Conditional Formatting

    Hi

    You don't need VBA for this. Simple conditional formatting.
    Attached Files Attached Files
    Regards

    Fotis.

    -This is my Greek whisper to Europe.

    --Remember, saying thanks only takes a second or two. Click the little star * below, to give some Rep if you think an answer deserves it.

    Advanced Excel Techniques: http://excelxor.com/

    --KISS(Keep it simple Stupid)

    --Bring them back.

    ---See about Acropolis of Athens.

    --Visit Greece.

  3. #3
    Registered User
    Join Date
    04-19-2012
    Location
    Singapore
    MS-Off Ver
    Excel 2003
    Posts
    11

    Re: Conditional Formatting

    Thanks Fotis, great help!

    What about if the value of a cell is within a certain tolerance level of difference?

    For example:

    To colour format the cells in column a, and i want to check them against a row of numbers for the same product in column a on a different excel sheet, where the colours tell me whether the number i am checking lies within a defined tolerance range of difference.



    Objective being, to find the outlier from the set of numbers on Sheet 1 against the numbers on Sheet 2 for the same product, but from a different source.

    Attached file for you to see.


    Thanks again,
    Attached Files Attached Files

  4. #4
    Forum Expert Fotis1991's Avatar
    Join Date
    10-11-2011
    Location
    Athens(The homeland of the Democracy!). Greece
    MS-Off Ver
    Excel 1997!&2003 & 2007&2010
    Posts
    13,744

    Re: Conditional Formatting

    You are welcome , BUT, according rule 2 of our forum that says:

    ..2. Don't post a question in the thread of another member -- start your own. If you feel it's particularly relevant, provide a link to the other thread.
    i can not help you in this thread. Pls, start your own thread.

  5. #5
    Registered User
    Join Date
    10-31-2011
    Location
    Singapore
    MS-Off Ver
    Microsoft 365 (Windows 10)
    Posts
    62

    Re: Conditional Formatting

    haha, i was very confused, but i see what happened there!

    I am Grekis and Morayman. I used an old computer to write that which logged me in with an old username which i don't really use anymore, grekis!!! (actually had forogtten about)

    Oh my, sorry about that. Same account, grekis is old. Do you want me to repost the question as morayman?

    sry again for the confusion!!

  6. #6
    Forum Expert Fotis1991's Avatar
    Join Date
    10-11-2011
    Location
    Athens(The homeland of the Democracy!). Greece
    MS-Off Ver
    Excel 1997!&2003 & 2007&2010
    Posts
    13,744

    Re: Conditional Formatting

    Ha ha...
    ...Do you want me to repost the question as morayman?
    No, but i prefer to give me reb * as "morayman", as he is oldest member..

    In this case we use named ranges and then this formula in CF rules.

    =ABS(B2-INDEX(Prices;MATCH(A2;Products;0)))<0,25
    Attached Files Attached Files

  7. #7
    Registered User
    Join Date
    10-31-2011
    Location
    Singapore
    MS-Off Ver
    Microsoft 365 (Windows 10)
    Posts
    62

    Re: Conditional Formatting

    thats great, thanks. given me some foundations to build upon here.
    Last question!! How do i apply this to an already existing amount of data?

    i guess this kind of applies more the the first question i had, with the colour for Y,N,M.

    How to i apply this condition to a block of data already? Or do i have to apply the condition one by one?

  8. #8
    Registered User
    Join Date
    10-31-2011
    Location
    Singapore
    MS-Off Ver
    Microsoft 365 (Windows 10)
    Posts
    62

    Re: Conditional Formatting

    thats great, thanks. given me some foundations to build upon here.
    Last question!! How do i apply this to an already existing amount of data?

    i guess this kind of applies more the the first question i had, with the colour for Y,N,M.

    How to i apply this condition to a block of data already? Or do i have to apply the condition one by one?

  9. #9
    Registered User
    Join Date
    10-31-2011
    Location
    Singapore
    MS-Off Ver
    Microsoft 365 (Windows 10)
    Posts
    62

    Re: Conditional Formatting

    Ignore last post, i was doing your first instruction wrong. Its now working fine.

    That's great, thanks Fotis for you kind help.

    Will be my pleasure to Rep you!

  10. #10
    Forum Expert Fotis1991's Avatar
    Join Date
    10-11-2011
    Location
    Athens(The homeland of the Democracy!). Greece
    MS-Off Ver
    Excel 1997!&2003 & 2007&2010
    Posts
    13,744

    Re: Conditional Formatting

    ..............................

+ 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