+ Reply to Thread
Results 1 to 2 of 2

SUM values in cells using a LOOP and CASE

  1. #1
    Registered User
    Join Date
    08-05-2015
    Location
    Denmark, Copenhagen
    MS-Off Ver
    2013
    Posts
    2

    SUM values in cells using a LOOP and CASE

    Hi All :0)

    I am creating a worksheet that counts number of accidents pr. year for a given month, and it has been working perfectly until now.

    I am at a point where i need to SUM values in the cells ... so that i can display how many sickdays there is, for that year in that given month!

    I am pretty new to VBA and i have run out of ideas.

    For counting accidents pr. year i have used this code which works very well! Now i just have to use SUM instead of counting + 1.

    Can i use the same code for SUM or do i have to do something different?

    I need to sum the values in the cells on my DATA sheet:
    Please Login or Register  to view this content.
    VBA:
    Please Login or Register  to view this content.

  2. #2
    Registered User
    Join Date
    08-05-2015
    Location
    Denmark, Copenhagen
    MS-Off Ver
    2013
    Posts
    2

    Re: SUM values in cells using a LOOP and CASE

    Im looking for a soultion on how to implement SUM in the above LOOP!

    Any kinda of help would be greatly appreciated

+ 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. If 4 cells have specific values then x; Select Case?
    By cocacrave in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 05-04-2015, 08:19 AM
  2. Make Upper Case in cells become lower case
    By davidx in forum Excel General
    Replies: 2
    Last Post: 12-02-2013, 08:40 AM
  3. Highlighting lower case in cells and ALL CAPITAL CASE
    By NJS1982 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 06-12-2013, 07:47 AM
  4. Cannot get the values of cells in a loop
    By ManFano in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 04-14-2011, 03:30 PM
  5. A better Case (was "Create Loop with Case statement")
    By Rick_Stanich in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 09-16-2009, 12:55 PM
  6. Counting case-sensitive values withon a range of cells
    By Jessika in forum Excel General
    Replies: 2
    Last Post: 02-13-2007, 04:28 PM
  7. [SOLVED] How to change mixed case to upper case in Excel for all cells
    By WordAlone Network in forum Excel General
    Replies: 6
    Last Post: 02-14-2006, 08:10 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