+ Reply to Thread
Results 1 to 9 of 9

Conditional formatting/lookup/IF

  1. #1
    Registered User
    Join Date
    10-05-2013
    Location
    Sydney, Australia
    MS-Off Ver
    Excel 2010
    Posts
    14

    Conditional formatting/lookup/IF

    Hi....first time poster. Hope im in the right section

    I have a a worksheet shown below called ADE. There are a number of columns as you can see.

    Example 1.jpg

    I also have a worksheet called Game by Game shown below

    Example 2.jpg

    I want to do some conditional formatting - if Vance's name appears in cell B4 of worksheet game by game then I want the number 3 to appear automatically in cell B2 of worksheet ADE.

    However, if Vance isn't in B4 of of game by game I want it to look at Cell B5 - if it is there then I want the number 2 to appear in B2 of ADE

    Again, if Vance doesn't in Cell B5 then I want it to look in B6, and if Vance is there then I want the number 1 to appear in B2 of ADE.

    If Vance is in none of those cells, I then want it to look in cell B8, and if B8 contains Vance then I want B2 of ADE to be shaded green.

    Finally, if if Vance is in neither B4, B5, B6 or B8 then cell B2 in ADE can be left blank

    I hope this makes sense - I have tried using LOOKUP and IF functions to do this but I am getting tangled up. I only need it for one example and then I can manipulate it for anything else
    Last edited by Mulberry; 10-05-2013 at 04:20 AM.

  2. #2
    Forum Expert etaf's Avatar
    Join Date
    10-22-2004
    Location
    Wittering, West Sussex, UK
    MS-Off Ver
    365 (Mac OSX) (16.92 (24120731))
    Posts
    9,103

    Re: Conditional formatting/lookup/IF

    the spreadsheet itself , rather than images would be helpful

    in B2 sheet ADE

    If( 'game by game'!B4="vance", 3 , If( 'game by game'!B5="vance", 2, If( 'game by game'!B6="vance", 1, "")))

    That should put the numbers into the cells

    then in conditional formatting use
    ='game by game'!B8="vance"
    to turn the cell green

    see attached
    Attached Files Attached Files
    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
    10-05-2013
    Location
    Sydney, Australia
    MS-Off Ver
    Excel 2010
    Posts
    14

    Re: Conditional formatting/lookup/IF

    Thanks for the response!
    Last edited by Mulberry; 10-05-2013 at 06:47 AM.

  4. #4
    Forum Expert etaf's Avatar
    Join Date
    10-22-2004
    Location
    Wittering, West Sussex, UK
    MS-Off Ver
    365 (Mac OSX) (16.92 (24120731))
    Posts
    9,103

    Re: Conditional formatting/lookup/IF

    sorry, i don't understand the question

    vance is changing cells in the game by game sheet
    so not sure exactly what you mean by vance in A2 ?

  5. #5
    Registered User
    Join Date
    10-05-2013
    Location
    Sydney, Australia
    MS-Off Ver
    Excel 2010
    Posts
    14

    Re: Conditional formatting/lookup/IF

    Apologies, I worked it out.

    In regards to the conditional formatting aspect - how am I able to format the cell to colour if I have a list of names in cell B8.....so that it can search for a name within a list of names (which may be written like Matthews, Vance, etc)

  6. #6
    Forum Expert etaf's Avatar
    Join Date
    10-22-2004
    Location
    Wittering, West Sussex, UK
    MS-Off Ver
    365 (Mac OSX) (16.92 (24120731))
    Posts
    9,103

    Re: Conditional formatting/lookup/IF

    you can use a lookup in conditional formatting

    =NOT(ISERROR(VLOOKUP('game by game'!$B$8,Sheet3!$B$3:$B$5,1,FALSE)))

    This is probably not the best way to use it

    But it uses vlookup to find a name that matches in sheet three
    if it is found then , that is not an error - so returns TRUE
    and the NOT - makes it false - so it does not conditional format
    Attached Files Attached Files

  7. #7
    Registered User
    Join Date
    10-05-2013
    Location
    Sydney, Australia
    MS-Off Ver
    Excel 2010
    Posts
    14

    Re: Conditional formatting/lookup/IF

    Thanks for your assistance etaf, I managed to use isnumber(search) to do it.

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

    Re: Conditional formatting/lookup/IF

    isnumber only checks for a number and not a set of names - so any text would be true

  9. #9
    Registered User
    Join Date
    10-05-2013
    Location
    Sydney, Australia
    MS-Off Ver
    Excel 2010
    Posts
    14

    Re: Conditional formatting/lookup/IF

    Quote Originally Posted by etaf View Post
    isnumber only checks for a number and not a set of names - so any text would be true
    It seems to be working without any problem

+ 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. conditional formatting and lookup help
    By fentiger79 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 05-17-2013, 04:04 AM
  2. V Lookup and Conditional Formatting
    By Robthfc in forum Excel General
    Replies: 6
    Last Post: 05-25-2010, 01:01 PM
  3. Excel 2007 : Conditional Formatting / Lookup
    By rampage007 in forum Excel General
    Replies: 7
    Last Post: 12-06-2009, 06:47 PM
  4. [SOLVED] Conditional formatting using lookup
    By freestra@fastmail.fm in forum Excel General
    Replies: 1
    Last Post: 07-28-2006, 08:45 AM

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