+ Reply to Thread
Results 1 to 4 of 4

Macros to SUM by conditional formatting

  1. #1
    Forum Contributor
    Join Date
    12-17-2012
    Location
    indonesia
    MS-Off Ver
    Excel 2019
    Posts
    170

    Macros to SUM by conditional formatting

    Hi, kindly help the macros for sum all from row A to particular cell

    IF column A =
    Fb Store
    Dry Good Store
    FB Kitchen
    Food Riva
    Pastry Kitchen
    then D:2 will create "food" and E2 will sum all of them

    IF Column A =
    Beverage Store
    then D3 will create " Beverage Store" and copied the amount in E3

    IF Column A =
    Beverage Riva
    then D4 will create " Beverage Riva" and copied the amount in E4

    IF Column A =
    Bistro
    then D5 will create " Bistro" and copied the amount in E5

    IF Column A =
    Engineering
    Engineering Store
    then D6 will create " Engineering" and copied the amount in E6

    IF Column A =
    Acct/Finance
    Concierge
    Front Office
    Housekeeping
    FB Admin
    Housekeeping Store
    HRD
    Laundry
    Premier
    Reservation
    Stewarding
    Stewarding Store
    Non FB Banquet
    Non FB Riva
    Non FB Cafe One
    Non FB Riva
    Non FB Room Service
    Non FB Lobby Lounge
    Non FB Pastry Kitchen
    Business Centre
    Sales & Marketing
    General Store
    then D7 will create " GS" and copied the amount in E7
    then E8 is sum of E1:E7

    Regards,
    Andy
    Attached Files Attached Files

  2. #2
    Forum Expert jaslake's Avatar
    Join Date
    02-21-2009
    Location
    Atwood Lake in Mid NE Ohio...look it up.
    MS-Off Ver
    Excel 2010 2019
    Posts
    12,749

    Re: Macros to SUM by conditional formatting

    Hi oeyandyprawira

    Welcome to the Forum!!!

    This Code is in the attached. Notice I've added Column Headers to your Data and have set up Tables in Sheet1 together with some Named Ranges.
    CTRL + x will fire the Code.

    Please Login or Register  to view this content.
    Attached Files Attached Files
    John

    If you have issues with Code I've provided, I appreciate your feedback.

    In the event Code provided resolves your issue, please mark your Thread as SOLVED.

    If you're satisfied by any members response to your issue please use the star icon at the lower left of their post.

  3. #3
    Forum Contributor
    Join Date
    12-17-2012
    Location
    indonesia
    MS-Off Ver
    Excel 2019
    Posts
    170

    Re: Macros to SUM by conditional formatting

    Hi John,

    superb John working perfectly. Thx very much.

    I have another case but no one response, could you please kindly see this case whether it's possible or not to create the macros

    http://www.excelforum.com/excel-prog...t=#post4169669

    Best Regards,
    Andy

  4. #4
    Forum Expert jaslake's Avatar
    Join Date
    02-21-2009
    Location
    Atwood Lake in Mid NE Ohio...look it up.
    MS-Off Ver
    Excel 2010 2019
    Posts
    12,749

    Re: Macros to SUM by conditional formatting

    You're welcome...glad I could help. Thanks for the Rep.

    I'll look at your other Thread.

+ 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 or macros or vba?
    By lcartwright in forum Excel General
    Replies: 2
    Last Post: 08-07-2014, 06:28 PM
  2. [SOLVED] Conditional formatting + macros
    By helpplease344 in forum Excel General
    Replies: 4
    Last Post: 05-16-2014, 03:42 PM
  3. [SOLVED] Macros and conditional formatting
    By skalus in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 11-25-2013, 08:38 AM
  4. [SOLVED] Help with Macros and/or Conditional Formatting.
    By Inez15 in forum Excel General
    Replies: 5
    Last Post: 11-08-2012, 01:11 PM
  5. Conditional formatting and macros.
    By johnfar in forum Excel General
    Replies: 0
    Last Post: 12-15-2011, 09:41 AM
  6. Conditional Formatting Macros
    By njadam in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 11-22-2011, 02:58 AM
  7. Conditional Formatting And Macros
    By Dominic_Hodgson in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 06-04-2007, 05: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