+ Reply to Thread
Results 1 to 9 of 9

Conditional formatting

  1. #1
    Forum Contributor
    Join Date
    01-18-2012
    Location
    nr Salisbury, UK
    MS-Off Ver
    Excel 2010
    Posts
    126

    Conditional formatting

    Two part question.
    1) Trying to apply colour fill conditional formatting to C8 when A8=”Visa” then use the fill down function to apply it to all the cells in the column.
    2) Then z8 to =Sum of values in C that meet condition format colour fill

    Have entered =if(A7=”Visa”,C7>0) in ‘Format values where this function is true’ believing it was a relative reference. But when I copy or use fill down it behaves as an Absolute Ref. ie remains A7=”Visa”,C7>0 and has not changed to A8=”Visa”,C8>0 and so on as I had expected.

    Can any one help me? As you can tell I am a novice.
    Last edited by julhs; 01-19-2012 at 09:09 PM.

  2. #2
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    48,313

    Re: Conditional formatting

    To best describe or illustrate your problem you would be better off attaching a dummy workbook, the workbook should contain the same structure and some dummy data of the same type as the type you have in your real workbook - so, if a cell contains numbers & letters in this format abc-123 then that should be reflected in the dummy workbook. Don't upload a picture when you have a workbook question. None of us is inclined to recreate your data. Upload the workbook and manually add an 'after' situation so that we can see what you expect. In addition clearly explain how you get the results..
    To attach a file to your post, you need to be using the main 'New Post' or 'New Thread' page and not 'Quick Reply'.
    To use the main 'New Post' page, click the 'Post Reply' button in the relevant thread.

    On this page, below the message box, you will find a button labelled 'Manage Attachments'.
    Clicking this button will open a new window for uploading attachments.

    You can upload an attachment either from your computer or from another URL by using the appropriate box on this page.
    Alternatively you can click the Attachment Icon to open this page.

    To upload a file from your computer, click the 'Browse' button and locate the file.

    To upload a file from another URL, enter the full URL for the file in the second box on this page.
    Once you have completed one of the boxes, click 'Upload'.

    Once the upload is completed the file name will appear below the input boxes in this window.
    You can then close the window to return to the new post screen.
    Trevor Shuttleworth - Retired Excel/VBA Consultant

    I dream of a better world where chickens can cross the road without having their motives questioned

    'Being unapologetic means never having to say you're sorry' John Cooper Clarke


  3. #3
    Forum Contributor
    Join Date
    01-18-2012
    Location
    nr Salisbury, UK
    MS-Off Ver
    Excel 2010
    Posts
    126

    Re: Conditional formatting

    Hi TMShucks,

    Thank you for your advice.

    I have attached a dummy workbook as you suggested that hopefully shows my objectives.

    A solution to the attached would be fantastic but I am frustrated with trying to apply the conditional formatting to a large sheet. If I copy and paste a row at a time the reference cell row # will change accordingly, $D4 will change to $D5 and so on but if I use ‘Filldown’ $D4 behaves as if it is $D$4. Consequently applying the format to the required cells will be very time consuming unless I can rectify this.

    Many thanks in advance

    julhs
    Attached Files Attached Files

  4. #4
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    48,313

    Re: Conditional formatting

    H14: =SUMIF($D$4:$D$12,$M14,H$4:H$12)

    Copy across and down


    Regards, TMS

  5. #5
    Forum Contributor
    Join Date
    01-18-2012
    Location
    nr Salisbury, UK
    MS-Off Ver
    Excel 2010
    Posts
    126

    Re: Conditional formatting

    Thanks a million TMS works a treat.

    Any thoughts on the other issue "If I copy and paste a row at a time the reference cell row # will change accordingly as you would expect; $D4 will change to $D5 and so on, but if I use ‘Filldown’ $D4 behaves as if it is $D$4".

    julhs

  6. #6
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    48,313

    Re: Conditional formatting

    The only reason I can think of for that happening is if Calculation is set to Manual. On the Status bar it would say "Calculate". If it does, press F9.

    Other than that, no idea. Post an example of the formula where that is happening and explain what key strokes you use to fill down.

    I tend not to use fill down if there is formatting as I generally mess it up. I would generally copy the cell and the Paste Special | Formulas so that I just get the formula

    Regards, TMS

  7. #7
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    48,313

    Re: Conditional formatting

    If you are satisfied with the solution(s) provided, please mark your thread as Solved.

    How to mark a thread Solved
    Go to the first post
    Click edit
    Click Go Advanced
    Just below the word Title you will see a dropdown with the word No prefix.
    Change to Solved
    Click Save

  8. #8
    Forum Contributor
    Join Date
    01-18-2012
    Location
    nr Salisbury, UK
    MS-Off Ver
    Excel 2010
    Posts
    126

    Re: Conditional formatting

    By the way I did have to tweak your formula slightly for it to run ok. Had to change it to this, H16: =SUMIF($D$4:$D$14,$n16,H$4:H$14)

    Calculate is set to automatic so that illuminates that possible cause.

    I will mark this thread as solved and start a new one on the issue with the ‘Filldown’

    Many thanks for your help,

    Regards julhs

  9. #9
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    48,313

    Re: Conditional formatting

    You're welcome. Thanks for the rep.

+ 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