+ Reply to Thread
Results 1 to 7 of 7

Conditional Formatting based on Cell References not Values

  1. #1
    Registered User
    Join Date
    03-05-2012
    Location
    usa
    MS-Off Ver
    Excel 2010
    Posts
    19

    Conditional Formatting based on Cell References not Values

    I have a worksheet that totals data form another sheet. The end user has to copy and paste new rows into this sheet on occasion. I want to do some conditional formatting to be sure the copied row are referencing the correct cells on the "data" sheet.The referenced cells are on the same row. Lets say the Cell references are Sheet1!Z11 and Sheet1!Z25. What I want to achieve is have the Second Cell on my total sheet change color if the cell reference in the second cell is not 14 rows to the right of the first cell reference.

  2. #2
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,942

    Re: Conditional Formatting based on Cell References not Values

    to the right? Not sure I understand what you are trying to achieve, Could you upload a sample file with dummy data in it, showing what you are working with, and what result you are looking to achieve?
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  3. #3
    Registered User
    Join Date
    03-05-2012
    Location
    usa
    MS-Off Ver
    Excel 2010
    Posts
    19

    Re: Conditional Formatting based on Cell References not Values

    Attached is a workbook with what i'm trying to accomplish.
    Attached Files Attached Files

  4. #4
    Forum Contributor darknation144's Avatar
    Join Date
    01-24-2012
    Location
    London
    MS-Off Ver
    Microsoft Excel 365 MSO
    Posts
    555

    Re: Conditional Formatting based on Cell References not Values

    That is bar near impossible to do as you would have to check if the formula's numbers are equal to the row. Why can't you just get the top line correct and copy down?

    Or use Vlookup instead:

    test.xlsx
    Last edited by darknation144; 03-06-2012 at 10:38 AM.

  5. #5
    Registered User
    Join Date
    03-05-2012
    Location
    usa
    MS-Off Ver
    Excel 2010
    Posts
    19

    Re: Conditional Formatting based on Cell References not Values

    I'm not the only user of the workbook. I'm trying to eliminate possible copy errors. So what your saying is there is not easy way to look at the cell reference. Could I Conditional Format to make sure both values(Summery and Data) are equal with an index formula?

  6. #6
    Forum Contributor darknation144's Avatar
    Join Date
    01-24-2012
    Location
    London
    MS-Off Ver
    Microsoft Excel 365 MSO
    Posts
    555

    Re: Conditional Formatting based on Cell References not Values

    You could but if you look at my upload you will see you can do it with Vlookup therefore there shouldn't ever be any mistakes. You could use Address(), Row() and Column() to check if you were so inclined. I see you trying to reduce errors but if you use index() or vlookup() user mistakes shouldn't come into it.
    Last edited by darknation144; 03-06-2012 at 10:56 AM.

  7. #7
    Registered User
    Join Date
    03-05-2012
    Location
    usa
    MS-Off Ver
    Excel 2010
    Posts
    19

    Re: Conditional Formatting based on Cell References not Values

    You're right, I should make the Freight cell Index(), I was making this more complicated the necessarily.
    Thanks

+ 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