+ Reply to Thread
Results 1 to 11 of 11

Macro and Conditional formating problem. Please help!

Hybrid View

  1. #1
    Registered User
    Join Date
    08-14-2010
    Location
    USA
    MS-Off Ver
    Excel 2003
    Posts
    43

    Macro and Conditional formating problem. Please help!

    Kim Sample.xlsxHello:

    1. I am trying to format a row based on another row values. I does not work! It only work if I do formating of one cell.
    2. How do I do a macro that can rearrange information from raw data sheet? I hard to expalin. Please see attached file.

    I am not a programmer, but I really want to learn and to achieve this goal. Your kind help are greatly appreciated.

    Kim A
    Last edited by 11ktran44; 02-26-2012 at 11:08 AM. Reason: Need to upload file.

  2. #2
    Forum Expert Simon Lloyd's Avatar
    Join Date
    03-02-2004
    Location
    locked in the cage
    MS-Off Ver
    All the ones my homepage shows
    Posts
    3,161

    Re: Macro and Conditional formating problem. Please help!

    Firstly there's no attached file!

    Your conditional formatting can be done by clicking the row number (click row 3) then FORMAT>CONDITIONAL FORMATTING and enter something like this for entire row colouring =$4:$4>0 choose a colour and click ok, now when you enter a value in row 4 greater than zero the entire row will colour, if you want specific cells to colour if cells on the other row are filled then click row 1 then FORMAT>CONDITIONAL FORMATTING and enter something like this for entire row colouring =A$2>0 choose a colour and click ok, now when you enter a value in a cell in row 2 the cell above will conditional format.


    Google Me
    Find me located here Simon Lloyd
    and what i'm about Here
    The above is NOT a link to a forum so is NOT against Rule 13

  3. #3
    Registered User
    Join Date
    08-14-2010
    Location
    USA
    MS-Off Ver
    Excel 2003
    Posts
    43

    Re: Macro and Conditional formating problem. Please help!

    Hello Simon:

    For the cell formatting, I am setting each row at a time and it's take too long. I tried to highlight the column C and then format/conditional format, enter =$B:$B>90, select blue. The entire column C turns blue instead only the one with score >90. Please help! I am just a dummy!

    Best regards,
    Kim A

  4. #4
    Forum Expert Simon Lloyd's Avatar
    Join Date
    03-02-2004
    Location
    locked in the cage
    MS-Off Ver
    All the ones my homepage shows
    Posts
    3,161

    Re: Macro and Conditional formating problem. Please help!

    In your file your data is laid out wrong to manipulate it properly, what you want to acheive can all be done with VlookUp, you need to lay out the data in one row or have one row per exam....etc then life would be a lot easier


    Google Me
    Find me located here Simon Lloyd
    and what i'm about Here
    The above is NOT a link to a forum so is NOT against Rule 13

  5. #5
    Registered User
    Join Date
    08-14-2010
    Location
    USA
    MS-Off Ver
    Excel 2003
    Posts
    43

    Re: Macro and Conditional formating problem. Please help!

    Hello Simon:

    Thank so much for your quick response! I am working on the formatting now. For the test data, that is how they come in not in order. I guess they log in as the student come in taking test. The Progress page was done by sorting out by student name and then I added the Student. I try to find a quick way to have this done. Your advise is greatly appreciated!

    Kim A

  6. #6
    Forum Expert Simon Lloyd's Avatar
    Join Date
    03-02-2004
    Location
    locked in the cage
    MS-Off Ver
    All the ones my homepage shows
    Posts
    3,161

    Re: Macro and Conditional formating problem. Please help!

    On your student progress sheet you should have one line for every exam of each student, so it may result in seeing hundreds of names in column A and many of them repeated but then you can filetr for them


    Google Me
    Find me located here Simon Lloyd
    and what i'm about Here
    The above is NOT a link to a forum so is NOT against Rule 13

  7. #7
    Registered User
    Join Date
    08-14-2010
    Location
    USA
    MS-Off Ver
    Excel 2003
    Posts
    43

    Re: Macro and Conditional formating problem. Please help!

    Again, thank so much for your help!

  8. #8
    Forum Expert OnErrorGoto0's Avatar
    Join Date
    12-30-2011
    Location
    I DO NOT POST HERE ANYMORE
    MS-Off Ver
    I DO NOT POST HERE ANYMORE
    Posts
    1,655

    Re: Macro and Conditional formating problem. Please help!

    If you have highlighted the entire column, use:
    =$B1>90

    Note there is no $ in front of the 1.
    Good luck.

  9. #9
    Registered User
    Join Date
    08-14-2010
    Location
    USA
    MS-Off Ver
    Excel 2003
    Posts
    43

    Re: Macro and Conditional formating problem. Please help!

    Thanks, Rory! It works!

    May I ask for you rhelp again?

    I tried to set = $B1 between 75 and 91 and = $B1 >75 and <91, but it does not work. Please help.

    Best regards,
    KimA

  10. #10
    Forum Expert OnErrorGoto0's Avatar
    Join Date
    12-30-2011
    Location
    I DO NOT POST HERE ANYMORE
    MS-Off Ver
    I DO NOT POST HERE ANYMORE
    Posts
    1,655

    Re: Macro and Conditional formating problem. Please help!

    You need
    =and($B1>75,$B1<90)

  11. #11
    Registered User
    Join Date
    08-14-2010
    Location
    USA
    MS-Off Ver
    Excel 2003
    Posts
    43

    Re: Macro and Conditional formating problem. Please help!

    Quote Originally Posted by OnErrorGoto0 View Post
    You need
    =and($B1>75,$B1<90)
    Thank so much for your help!

    Best regards,
    KimA

+ 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