+ Reply to Thread
Results 1 to 2 of 2

beginner needs help

Hybrid View

mikemike beginner needs help 09-19-2006, 10:43 AM
JR@SGC answer 09-19-2006, 11:34 AM
  1. #1
    Registered User
    Join Date
    09-18-2006
    Posts
    2

    beginner needs help

    How would I do the following?

    1. Enter a value in cell B2.
    2. Press a button
    3. Check if value in cell B2 is a name of one of the sheets in the workbook
    4. If value matches one of the sheetnames, make background of cell green, otherwise turn it red

  2. #2
    Forum Contributor
    Join Date
    09-04-2006
    Location
    Yorkshire, England
    Posts
    267

    answer

    Hi


    A combined effort from JR@SGC and Chappo

    1. Create a list of the sheet names

    2. select the cell you want to conditional format (B2) then

    3. Format > Conditional formtting...

    4. when it opens change 'cell vaule is' to 'formula is' (via the drop down box)

    5. enter the formula:

    =IF(OR(B2=H21,B2=H22,B2=H23,B2=H24),TRUE,FALSE)

    or

    =If(or(B2=H21,h22,h23,h24,),true,false)

    (H21 etc is our range and repeat for as many names)

    6. then set your conditional formatting


    Hope it works
    JR
    Versions
    Mac OS X 'Leopard'
    Mac MS Office Excel 2004
    Windows XP
    MS Excel 2002
    MS Excel 2003

+ 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