+ Reply to Thread
Results 1 to 3 of 3

Count and multiply values of multiple names

  1. #1
    Registered User
    Join Date
    01-31-2017
    Location
    Shenzhen
    MS-Off Ver
    2013
    Posts
    27

    Count and multiply values of multiple names

    Hello Everyone,

    The following code counts all hours in a row if the name (name1) is matching. The sum will be then multiplied with a factor (cells(6, 14).value).
    Please Login or Register  to view this content.
    Now I would like to add multiple names to the code for example name1, name2, name3, etc. The last code would then look as followed:
    Please Login or Register  to view this content.
    What is the easiest way to implement multiple names in this case?

    Stefan

  2. #2
    Forum Expert
    Join Date
    10-09-2014
    Location
    Newcastle, England
    MS-Off Ver
    2003 & 2013
    Posts
    1,986

    Re: Count and multiply values of multiple names

    Without seeing the actual data and the current sub in action then it's hard to be certain but I believe the following should do it.

    Please Login or Register  to view this content.
    If someone has helped you then please add to their Reputation

  3. #3
    Registered User
    Join Date
    01-31-2017
    Location
    Shenzhen
    MS-Off Ver
    2013
    Posts
    27

    Re: Count and multiply values of multiple names

    Thanks a lot!

    I had to move the vertical loop out of the array and then it worked perfectly.

    Stefan

+ 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. SUMIFS with months, names, values Multiple Criteria Based on Months and Names
    By Aaron R Bauer in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 12-25-2016, 12:07 PM
  2. SUMIFS with months, names, values Multiple Criteria Based on Months and Names
    By Aaron R Bauer in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 12-14-2016, 06:51 PM
  3. [SOLVED] multiply column values based on multiple criteria
    By Yokosuka in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 09-03-2016, 01:55 PM
  4. Count formula that will look for multiple words and multiply their lookup
    By excelrizzo in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 10-30-2013, 03:52 AM
  5. Count/Sum Formula - Multiple Pages - Using first and last names
    By JerLon in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 10-04-2012, 10:19 AM
  6. Replies: 5
    Last Post: 04-21-2011, 05:22 PM
  7. [SOLVED] add a value to and then multiply values of multiple codes in one c
    By Tomkat743 in forum Excel General
    Replies: 2
    Last Post: 03-29-2006, 12:57 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