+ Reply to Thread
Results 1 to 6 of 6

Help needed Highlighting Cell in a grid from 2 calculated cells

  1. #1
    Registered User
    Join Date
    10-01-2013
    Location
    us
    MS-Off Ver
    Excel 2010
    Posts
    3

    Help needed Highlighting Cell in a grid from 2 calculated cells

    Hi All,
    Need help with a formula and completely new to forum, only basic knowledge in Excel.

    I have 2 calculated values in 2 independant cells D31 (x- axis) and D33 (Y-axis) both ranging from 1-5.
    I need these to highlight a cell in a 5x5 matrix G18:K22.

    Thanks

  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,936

    Re: Help needed Highlighting Cell in a grid from 2 calculated cells

    Hi and welcome to the forum

    Cells cannot make other cells do anything (normally). Bur what you can do is use Conditional Formatting on your table, to make cells with-in it change color based on other criteria (like your 2 cells)

    If you upload a (clean) sample workbook with dummy data, I can show you how to do it (or you can try for yourself?)
    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
    10-01-2013
    Location
    us
    MS-Off Ver
    Excel 2010
    Posts
    3

    Re: Help needed Highlighting Cell in a grid from 2 calculated cells

    Hi,

    Thanks for the welcome, I have uploaded a sample sheet for you to show me what you mean by the conditional formatting.

    Thanks for the help
    Attached Files Attached Files

  4. #4
    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,936

    Re: Help needed Highlighting Cell in a grid from 2 calculated cells

    1. Please avoid the use of merged cells it at all possible, they cause more trouble than anything else.
    2. your "numbers" in E13:E22 are text, not numbers, convert them to numbers.
    3. you can simplify the formula in G7 from this...
    =IF((SUM(((O7*N7)+(O13*N13)+(O18*N18)+(O23*N23)+(O28*N28))*5)/3) <1.7,1,(SUM(((O7*N7)+(O13*N13)+(O18*N18)+(O23*N23)+(O28*N28))*5)/3))
    to this...
    =if(SUMPRODUCT(N7:N30*O7:O30)*5/3<1.7,1,SUMPRODUCT(N7:N30*O7:O30)*5/3)

    for the CF...
    1. highlight the range you want to apply the conditional formatting to (F13:J21)
    2. on the home tab, styles, select CF
    3. select new rule, select use formula
    4. enter =AND($E13=$G$9,F$12=$G$7)

  5. #5
    Registered User
    Join Date
    10-01-2013
    Location
    us
    MS-Off Ver
    Excel 2010
    Posts
    3

    Re: Help needed Highlighting Cell in a grid from 2 calculated cells

    Hi,

    Thanks for the help, the changes work well. I have come into another issue though, the formatting only works when the X Axis value is a whole number, is there a way to overcome this?

    Thanks

  6. #6
    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,936

    Re: Help needed Highlighting Cell in a grid from 2 calculated cells

    OK well what would the range be (upper and lower limits?)for the color to change then?

    You can use roundup() or rounddown to force the rounding in a certain direction, applying it either to G7...
    =if(SUMPRODUCT(N7:N30*O7:O30)*5/3<1.7,1,ROUNDUP(SUMPRODUCT(N7:N30*O7:O30)*5/3)) ... or rounddown

    Or you could apply it to the CF formula...
    =AND($E13=roundup($G$9),F$12=roundup($G$7))

+ 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. Scheduling Data Needed and Bid Hours Calculated for a certain date
    By smirk100 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 08-17-2013, 06:52 PM
  2. [SOLVED] How to add 1 to a calculated cell if a range of cells are not empty?
    By Bandolin in forum Excel General
    Replies: 3
    Last Post: 10-27-2012, 04:24 PM
  3. Code adjustment needed-warning message and highlighting is deactivated.
    By baffled1 in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 12-01-2011, 09:23 PM
  4. Replies: 1
    Last Post: 05-19-2010, 12:41 PM
  5. Replies: 6
    Last Post: 08-28-2005, 05:05 PM

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