+ Reply to Thread
Results 1 to 16 of 16

Conditional Formatting Value highlights multiple values

  1. #1
    Registered User
    Join Date
    04-15-2013
    Location
    Australia
    MS-Off Ver
    Excel 2003
    Posts
    8

    Conditional Formatting Value highlights multiple values

    Hello first time posting your site, It have used alot but not posted yet, thankyou for all your answers of others questions as it has helped me alot.

    I have a spreadsheet of hired sea shipping containers but occasional we will receive ones that we have purchased. I would like the cell of the purchased container number in a column to highlight if one of the purchased containers numbers is entered in, i know how to format to do individual numbers but i would like a rule for about 20 numbers without having 20 different rules. please see attached spreadsheet. The ones with Purchased next to them are the ones i want to highlight if that number is entered into the spreadsheet.

    Your help is greatly appreciated
    Attached Files Attached Files

  2. #2
    Forum Expert dilipandey's Avatar
    Join Date
    12-05-2011
    Location
    Dubai, UAE
    MS-Off Ver
    1997 - 2016
    Posts
    8,191

    Re: Conditional Formatting Value highlights multiple values

    The ones with Purchased next to them are the ones i want to highlight if that number is entered into the spreadsheet.
    Hi brent_bris, welcome to the forum.

    What I understood, that you have marked some asset number as purchased and when these number would be entered in some other sheet then they should be automatically highlighted.. correct ?


    Regards,
    DILIPandey
    <click on below * if this helps>
    DILIPandey, Excel rMVP
    +919810929744 (India), +971528225509 (Dubai), [email protected]

  3. #3
    Registered User
    Join Date
    04-15-2013
    Location
    Australia
    MS-Off Ver
    Excel 2003
    Posts
    8

    Re: Conditional Formatting Value highlights multiple values

    Hi dilipandey,

    Thanks for you quick reply,

    Not from another sheet. it would be on the same sheet exactly how it is on the link. Originally the cell will be blank. But as we receive the containers we enter the numbers in the spreadsheet. We know exactly what the numbers are and would like it to highlight once we have typed these numbers in. The hired containers get returned and previous by accident purchased ones get returned. with the highlight this would flag people not to return them but to keep them.

    Due to our situation here it is difficult to just enter them in and then mark them as this hasn't previously worked

  4. #4
    Forum Expert dilipandey's Avatar
    Join Date
    12-05-2011
    Location
    Dubai, UAE
    MS-Off Ver
    1997 - 2016
    Posts
    8,191

    Re: Conditional Formatting Value highlights multiple values

    and would like it to highlight once we have typed these numbers in
    What criteria will make those numbers to be eligible for highlighting?


    Regards,
    DILIPandey
    <click on below * if this helps>

  5. #5
    Registered User
    Join Date
    04-15-2013
    Location
    Australia
    MS-Off Ver
    Excel 2003
    Posts
    8

    Re: Conditional Formatting Value highlights multiple values

    not sure what you mean sorry.

    basically when i type in the purchased order number into the empty cell it highlights a colour.

    another example is if i choose say column "B" and use Conditional Formatting/highlight cells rules/equal to, Then you can add the container number and the format color. Is there a way to add multiple container numbers in this section? instead of doing this multiple times over and over for every purchased container number

  6. #6
    Forum Expert dilipandey's Avatar
    Join Date
    12-05-2011
    Location
    Dubai, UAE
    MS-Off Ver
    1997 - 2016
    Posts
    8,191

    Re: Conditional Formatting Value highlights multiple values

    basically when i type in the purchased order number into the empty cell it highlights a colour.
    I said "What criteria will make those numbers to be eligible for highlighting? ". For Example, if I type a number in G1 and that number matches in the list of numbers in you column B, then G1 will be highlighted... correct?

    All I want is how will you tell Excel what need to be done and basis what trigger/logic / condition.

    is if i choose say column "B" and use Conditional Formatting/highlight cells rules/equal to, Then you can add the container number and the format color. Is there a way to add multiple container numbers in this section? instead of doing this multiple times over and over for every purchased container number
    For this, you can use Match function where if the current cell matches in a list of container numbers, then current cell will be highlighted.

    Regards,
    DILIPandey
    <click on below * if this helps>

  7. #7
    Registered User
    Join Date
    04-15-2013
    Location
    Australia
    MS-Off Ver
    Excel 2003
    Posts
    8

    Re: Conditional Formatting Value highlights multiple values

    not sure what you mean sorry.

    basically when i type in the purchased order number into the empty cell it highlights a colour.

    another example is if i choose say column "B" and use Conditional Formatting/highlight cells rules/equal to, Then you can add the container number and the format color. Is there a way to add multiple container numbers in this section? instead of doing this multiple times over and over for every purchased container number

  8. #8
    Registered User
    Join Date
    04-15-2013
    Location
    Australia
    MS-Off Ver
    Excel 2003
    Posts
    8

    Re: Conditional Formatting Value highlights multiple values

    Quote Originally Posted by dilipandey View Post
    I said "What criteria will make those numbers to be eligible for highlighting? ". For Example, if I type a number in G1 and that number matches in the list of numbers in you column B, then G1 will be highlighted... correct?

    All I want is how will you tell Excel what need to be done and basis what trigger/logic / condition.


    For this, you can use Match function where if the current cell matches in a list of container numbers, then current cell will be highlighted.
    Regards,
    DILIPandey
    <click on below * if this helps>
    This is probably the best way i think, How would i do this?


    another example is if i choose say column "B" and use Conditional Formatting/highlight cells rules/equal to, Then you can add the container number and the format color
    I thought with this you could place a commer or / between them and and continue adding the 20 container numbers? i did try a few symbols but it didnt work.

  9. #9
    Forum Expert dilipandey's Avatar
    Join Date
    12-05-2011
    Location
    Dubai, UAE
    MS-Off Ver
    1997 - 2016
    Posts
    8,191

    Re: Conditional Formatting Value highlights multiple values

    Okay.. see G1 in attached file :-


    Containers.xlsx



    Regards,
    DILIPandey
    <click on below * if this helps>

  10. #10
    Registered User
    Join Date
    04-15-2013
    Location
    Australia
    MS-Off Ver
    Excel 2003
    Posts
    8

    Re: Conditional Formatting Value highlights multiple values

    Not exactly what i was after but close enough. Thank you very much for your help. muchly appreciated

  11. #11
    Forum Expert dilipandey's Avatar
    Join Date
    12-05-2011
    Location
    Dubai, UAE
    MS-Off Ver
    1997 - 2016
    Posts
    8,191

    Re: Conditional Formatting Value highlights multiple values

    You are welcome..

    Please mark this thread as [SOLVED].. thanks.

    Regards,
    DILIPandey
    <click on below * if this helps>

  12. #12
    Forum Expert Kevin UK's Avatar
    Join Date
    12-07-2010
    Location
    Radstock, Somerset
    MS-Off Ver
    365
    Posts
    1,922

    Re: Conditional Formatting Value highlights multiple values

    Hi brent_bris

    If I understand you correctly! You want to conditional format for, if a code in column B is a purchased code from a list of purchased codes then highlight the relevant cell!

    See if the attached sheet is of any use!
    The sheet has a named range which is dynamic in column S so you can add to it and it will update, you can put this wherever you require, just adjust the named range.
    Then conditional formatting has been applied using this list.
    Attached Files Attached Files
    Regards Kevin


    Merged Cells (They are the work of the devil!!!)

  13. #13
    Registered User
    Join Date
    04-15-2013
    Location
    Australia
    MS-Off Ver
    Excel 2003
    Posts
    8

    Re: Conditional Formatting Value highlights multiple values

    [QUOTE=Kevin UK;3206678]
    If I understand you correctly! You want to conditional format for, if a code in column B is a purchased code from a list of purchased codes then highlight the relevant cell!
    QUOTE]

    Thanks Kevin,

    What cell do i put this in? Do i select the whole column? and how can i change it to Column D? I have the Container numbers in Column T and all the other nubers are in D

    Appreciate your help

  14. #14
    Forum Expert Kevin UK's Avatar
    Join Date
    12-07-2010
    Location
    Radstock, Somerset
    MS-Off Ver
    365
    Posts
    1,922

    Re: Conditional Formatting Value highlights multiple values

    Hi brent_bris

    Select the whole column if required, ie: $D:$D and change the cell reference in the rule to $D1.
    And for the list, change the cell references again in the Name Manager on the Formulas Tab to: =Sheet1!$T$1:INDEX(Sheet1!$T:$T,COUNTA(Sheet1!$T:$T))

  15. #15
    Registered User
    Join Date
    04-15-2013
    Location
    Australia
    MS-Off Ver
    Excel 2003
    Posts
    8

    Re: Conditional Formatting Value highlights multiple values

    Quote Originally Posted by Kevin UK View Post
    Hi brent_bris

    Select the whole column if required, ie: $D:$D and change the cell reference in the rule to $D1.
    And for the list, change the cell references again in the Name Manager on the Formulas Tab to: =Sheet1!$T$1:INDEX(Sheet1!$T:$T,COUNTA(Sheet1!$T:$T))
    Hi Kevin,

    Sorry i am new to all this bit confused. I changed the code to $D:$D while selecting Column D. and went to the Formulas tab then Name manager. Does the name of that need to be a specific name? i chose scope obviously as workbook i did'nt add a comment then add the =Sheet1! code into the refers to box. Am i missing something? when i do the name manager part am i meant to highlight column T?

    I have added the actual spreadsheet i am using so you can see what i have done.

    Thank you Kevin
    Attached Files Attached Files

  16. #16
    Forum Expert Kevin UK's Avatar
    Join Date
    12-07-2010
    Location
    Radstock, Somerset
    MS-Off Ver
    365
    Posts
    1,922

    Re: Conditional Formatting Value highlights multiple values

    Hi brent_bris

    You need the list of codes for the named range "PurchaseCodes" for the conditional formatting rule, I have put the codes in Column AC. If you go to the Formulas tab, click on the Name Manager, Select the "PurchaseCodes", and then just click on the formula in the Refers to:, you should see the range selected, you might have to move the Name Manager box out of the way. Just add your codes to the list in column AC, just make sure that you have no blank cells between the codes.

    See the attached, I have changed the cell reference in the CF rule from $B1 to $D1.
    Attached Files Attached Files

+ 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