+ Reply to Thread
Results 1 to 3 of 3

Count number of instances from once sheet and add total in another cell on other sheet

  1. #1
    Registered User
    Join Date
    09-05-2016
    Location
    Germany
    MS-Off Ver
    2013
    Posts
    18

    Question Count number of instances from once sheet and add total in another cell on other sheet

    Hi guys,

    I've been trying to learn VBA over the last couple of years and am having issues with my code (Which mind you is extremely noob code)

    I have the following problem to solve:

    - I need to take Column C (C2:C) and basically number of times years 2017,2018 and 2019 come forth as an instance in Table1 and add the total amounts into C9,D9 and E9 on Table2. (I got it working somehow but my code is far from perfect)

    - I have to take Column R from Table1 (combination of orders inputted and orders confirmed) and differentiate between years 2017, 2018 and 2019 and put in the sum values to C11, D11 and E11 respectively.

    -Sum of orders shipped from Column R from Table1 need to be plugged into C13, D13 and E13 on Table2 respectively.

    - After this I need to differentiate between which salesman inputted and confirmed orders using Column I from Table1 and also differentiate between years and plug the values into C22, D22 and E22 and so forth.

    - Number or total rows in sheet Exhibit and Stored need to be saved in H9 and J9 respectively on Table2.

    I have attached along the excel file and would be forever grateful for your help!
    Attached Files Attached Files

  2. #2
    Registered User
    Join Date
    09-05-2016
    Location
    Germany
    MS-Off Ver
    2013
    Posts
    18

    Re: Count number of instances from once sheet and add total in another cell on other sheet

    Hi guys, I got some parts of my code working and just need hep with these 2 points, any help or ideas with vlookup would be appreciated

    - I have to take Column R from Table1 (combination of orders inputted and orders confirmed) and differentiate between years 2017, 2018 and 2019 and put in the sum values to C11, D11 and E11 respectively.


    - After this I need to differentiate between which salesman inputted and confirmed orders using Column I from Table1 and also differentiate between years and plug the values into C22, D22 and E22 and so forth.

  3. #3
    Registered User
    Join Date
    08-27-2018
    Location
    Germany
    MS-Off Ver
    2013
    Posts
    1

    Re: Count number of instances from once sheet and add total in another cell on other sheet

    Apologies guys, had to make a new account because I couldn't login to the first one from work. Here is the code I am trying to us but am getting 0 as the value being read off the cell:

    Please Login or Register  to view this content.
    I also tried IF AND THEN and that leads to the same issue as well:

    Please Login or Register  to view this content.
    Last edited by Interst3llar_; 08-27-2018 at 04:38 AM.

+ 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] count total number of lines in big text files and export results for each txt to sheet
    By jtammyg in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 11-07-2014, 05:37 AM
  2. Formula to get sheet reference then Count instances
    By damo1995 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 07-23-2014, 05:17 PM
  3. Count the number of textual instances in a cell
    By darrenj1471 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 06-21-2013, 06:29 AM
  4. [SOLVED] count the number of instances in a sheet where the team name and give teams investment
    By prodking in forum Excel Formulas & Functions
    Replies: 15
    Last Post: 10-22-2012, 02:43 AM
  5. count number of instances of a text string in a cell
    By lawrencef in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 11-28-2008, 01:55 PM
  6. [SOLVED] Count number of instances in sheet e.g. how many males/females
    By MJ in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 03-26-2005, 05:06 PM
  7. Replies: 1
    Last Post: 01-31-2005, 08:06 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