+ Reply to Thread
Results 1 to 3 of 3

Macro for sum and conditional formatting highlight

  1. #1
    Registered User
    Join Date
    04-27-2023
    Location
    SS
    MS-Off Ver
    Pro
    Posts
    7

    Macro for sum and conditional formatting highlight

    I would just like to say my boss and I appreciate the forum's answers to our queries. Truly.

    Forum Sample.xlsxI have attached the spreadsheet in question, and I am very new to macros. I have a command button question. I would like to create two command buttons at the top of the sheet

    1) One command button to sum up hours based on identical/different name and date combo. Column D uses the formula =IF(COUNTIFS($A$5:$A$12,A6,$B$5:$B$12,B6) = COUNTIFS($A$5:A6,A6,$B$5:B6,B6), SUMIFS($C$5:$C$12,$A$5:$A$12,A6,$B$5:$B$12,B6),""). Essentially would like the button to tally up hours in column D based on formula for future data that gets entered here.

    2) A command button to highlight values based on hours (yellow 70-99, Red > 100).

    Hopefully my question makes sense. Thanks in advance!

  2. #2
    Forum Guru
    Join Date
    08-15-2004
    Location
    Tokyo, Japan
    MS-Off Ver
    2013 O.365
    Posts
    22,525

    Re: Macro for sum and conditional formatting highlight

    Try (One button)
    Please Login or Register  to view this content.
    Attached Files Attached Files

  3. #3
    Registered User
    Join Date
    04-27-2023
    Location
    SS
    MS-Off Ver
    Pro
    Posts
    7

    Re: Macro for sum and conditional formatting highlight

    Thanks a bunch. I will play around and ask if i have more questions

+ 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. [SOLVED] Conditional Formatting Highlight Less than 1, Do not highlight blank cells
    By Keybler in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 08-21-2022, 11:25 AM
  2. Replies: 8
    Last Post: 12-15-2020, 11:02 AM
  3. [SOLVED] Highlight Row based on data on separate sheet - Macro or Conditional Formatting?
    By Richww2 in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 11-09-2012, 06:12 PM
  4. [SOLVED] Conditional formatting: Highlight second or more row
    By ExcelStefan in forum Excel General
    Replies: 1
    Last Post: 07-09-2012, 03:04 AM
  5. [SOLVED] Conditional Formatting for highlight
    By hecgroups in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 03-06-2012, 10:42 AM
  6. Replies: 2
    Last Post: 08-16-2009, 06:16 PM
  7. Conditional formatting macro (highlight macro)
    By c991257 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 05-09-2007, 02:46 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