+ Reply to Thread
Results 1 to 8 of 8

Conditional formating formula

  1. #1
    Registered User
    Join Date
    12-18-2012
    Location
    Denver
    MS-Off Ver
    Excel 2010
    Posts
    38

    Conditional formating formula

    Been fighting this for a while, attached is a welder log. this is used to track how many welds a welder makes and when he makes them...activity log if you will. I am trying to get cells to highlight automatically on continuity log tab. working with first one on list....if 41 makes a weld in january (from weld data tab) then column E will highlight grey on continuity log. need to consider column O (welder data tab) for process to highlight accordingly on continuity log.

    Taking all that into account i would also like to have the process on the continuity log highlight yellow if welder does not weld for five months, then red if welder has not welded for six months. for any of the weld processes to which it applies. (SMAW, GTAW, GMAW)

    **I also have a number of formulas in hidden in the columns on weld data tab--unhide to see
    Attached Files Attached Files
    Last edited by awest181; 08-07-2013 at 03:03 PM. Reason: SMALLER ATT

  2. #2
    Registered User
    Join Date
    12-18-2012
    Location
    Denver
    MS-Off Ver
    Excel 2010
    Posts
    38

    Re: Conditional formating formula

    No one knows?

  3. #3
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: Conditional formating formula

    E8: =COUNTIFS('WELD DATA'!$R:$R, E$7, 'WELD DATA'!$L:$L, $C8, 'WELD DATA'!$O:$O, $D8)
    E9: =COUNTIFS('WELD DATA'!$R:$R, E$7, 'WELD DATA'!$L:$L, $C8, 'WELD DATA'!$O:$O, $D9)
    E10: =COUNTIFS('WELD DATA'!$R:$R, E$7, 'WELD DATA'!$L:$L, $C8, 'WELD DATA'!$O:$O, $D10)

    Now copy those 3 cells across and down the table.

    This many Countifs may make your workbook a bit of a door stop.



    Another approach:

    1) In Weld Data in AF3: =L3&"-"&O3&"-"&R3
    2) Copy that dow the data set to create a "key" column

    3) In Continuity:

    E8: =ISNUMBER(MATCH(C8&"-"&$D8&"-"&E$7, 'WELD DATA'!$AF:$AF, 0))
    E9: =ISNUMBER(MATCH(C8&"-"&$D9&"-"&E$7, 'WELD DATA'!$AF:$AF, 0))
    E10:=ISNUMBER(MATCH(C8&"-"&$D10&"-"&E$7, 'WELD DATA'!$AF:$AF, 0))

    Now highlight E8:E10 and copy them together across and down as needed.
    Last edited by JBeaucaire; 08-07-2013 at 04:44 PM.
    _________________
    Microsoft MVP 2010 - Excel
    Visit: Jerry Beaucaire's Excel Files & Macros

    If you've been given good help, use the icon below to give reputation feedback, it is appreciated.
    Always put your code between code tags. [CODE] your code here [/CODE]

    ?None of us is as good as all of us? - Ray Kroc
    ?Actually, I *am* a rocket scientist.? - JB (little ones count!)

  4. #4
    Registered User
    Join Date
    12-18-2012
    Location
    Denver
    MS-Off Ver
    Excel 2010
    Posts
    38

    Re: Conditional formating formula

    JB,

    First thanks for your quick response. After looking at what you provided, I think we are close, see notes on cont log tab. Your formula gives me a count, what i am needing is just a conditional formating of cells. Also instead of using R row use M for date
    Attached Files Attached Files

  5. #5
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: Conditional formating formula

    Not a count, a TRUE/FALSE numeric that you can use for your Conditional Formatting. Now that you see the formulas in E8, E9 and E10 work, apply them to those same respective cells as conditional formatting formulas. Once you have the 3 cells set up with their CF formulas, copy E8:E10 as a group and paste down/across the table to apply the same "3-cell" sets of CF to the rest of the table.

  6. #6
    Registered User
    Join Date
    12-18-2012
    Location
    Denver
    MS-Off Ver
    Excel 2010
    Posts
    38

    Re: Conditional formating formula

    JB,

    Thanks for being patient with me and helping me get this going. Following your advice I plugged in formulas into conditional formating and they work like a champ..thanks.

    However, still needing the process of the weld to shade according to time since last weld. See attached--with your formulas plugged in.

    Thanks in advance
    Attached Files Attached Files

  7. #7
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: Conditional formating formula

    NOTE: I see you chose to use the first method I presented with the COUNTIFS() and no helper column on the WELD DATA sheet. Reminder, when you add that many COUNTIFS() to your sheet, you will most likely see performance issues. When that happens, switch to the second method I presented above, you just need a way to get numbers into those cells, the second method shouldn't affect speed.
    ------------------


    1) I took the the formulas out of conditional formatting and put them back into the cells themselves. This is because your column D needs to see the results of those formulas, too, and they can't be seen by column D if they are in conditional formatting. So the formulas are back in the cells and the font color paints the results white.

    2) Next I applied a new conditional formatting to those original cells that simply colors the cell grey if the value in the cell is > 0. The font is also colored grey to the number in the cell remains invisible.

    3) Then I applied a new set of CF formulas to column D that color based on the last cell in that row that has a value > 0 and the month that occurred.

    Since TODAY is AUG, any cells after AUG are considered to be LAST YEAR, that's why row9 is showing as red.
    Attached Files Attached Files

  8. #8
    Registered User
    Join Date
    12-18-2012
    Location
    Denver
    MS-Off Ver
    Excel 2010
    Posts
    38

    Re: Conditional formating formula

    thanks JB, exactly what i was looking for............you are the MAN!!

+ 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. Replies: 4
    Last Post: 01-23-2014, 10:14 AM
  2. Formula for conditional formating
    By rajeshturaha in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 07-31-2013, 06:12 AM
  3. If Formula and Conditional Formating
    By AznDragon533 in forum Excel General
    Replies: 1
    Last Post: 04-04-2011, 11:50 PM
  4. Conditional formating formula
    By jacko311 in forum Excel General
    Replies: 12
    Last Post: 02-02-2010, 12:04 PM
  5. Conditional formating-What formula do i need to use in conditional formating
    By warrima in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 04-07-2009, 12:33 AM

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