+ Reply to Thread
Results 1 to 4 of 4

Combining information VB script

  1. #1
    Registered User
    Join Date
    03-03-2015
    Location
    england
    MS-Off Ver
    2010
    Posts
    15

    Combining information VB script

    Hi All,

    I am looking for a VB script which will help me combine information which I currently do manually.

    I have attached the current spreadsheet in which i use.

    I am looking for the following:


    Sheet 2 Col A should show all the types of fruit from Sheet 1 Col A without the duplicates e.g. only 1 instance of 'Apple'
    Sheet 2 Col B should have the sum of all the same types of fruit from Sheet 1 Col E E.g. Apple would have 5 (1+4)
    Sheet 2 Col C should have the sum of all the same types of fruit from Sheet 1 Col F E.g. Apple would have 2 (1+1)
    Sheet 2 Col E should have the sum of all the same types of fruit from Sheet 1 Col H E.g. Apple would have 3 (0+3)
    Sheet 2 Col G should have the average of all the same types of fruit from Sheet 1 Col J E.g. Apple would have 3 ((4+2)/2)


    Any help would be massively appreciated and save a lot of time!
    Attached Files Attached Files
    Last edited by murrayjl03; 08-09-2016 at 10:41 AM.

  2. #2
    Forum Expert
    Join Date
    05-30-2012
    Location
    The Netherlands
    MS-Off Ver
    Office 365
    Posts
    14,987

    Re: Combining information VB script

    with a pivot table, see the attached file.
    Notice my main language is not English.

    I appreciate it, if you reply on my solution.

    If you are satisfied with the solution, please mark the question solved.

    You can add reputation by clicking on the star * add reputation.

  3. #3
    Registered User
    Join Date
    03-03-2015
    Location
    england
    MS-Off Ver
    2010
    Posts
    15

    Re: Combining information VB script

    Hi!

    Thank you for this! Is there a way of filtering on the pivot table to only show priority 1's?
    Last edited by murrayjl03; 08-09-2016 at 11:03 AM.

  4. #4
    Forum Expert
    Join Date
    05-30-2012
    Location
    The Netherlands
    MS-Off Ver
    Office 365
    Posts
    14,987

    Re: Combining information VB script

    yes that is possible, see the attached file.

+ 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] VBA Script to open webpages and extract information
    By mss90 in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 05-10-2016, 03:02 AM
  2. [SOLVED] VBA SCRIPT to copy information to different worksheets based on a criteria
    By Excel_Padwan in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 02-01-2014, 01:31 AM
  3. [SOLVED] Combining a Macro and Script
    By Donga00 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 07-14-2011, 12:38 AM
  4. Getting information on Excel external data range from VB Script
    By mtruman42 in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 01-07-2010, 12:21 PM
  5. Help with combining information
    By abaco1 in forum Excel General
    Replies: 1
    Last Post: 11-30-2005, 05:15 PM
  6. combining row information
    By tgoosed in forum Excel General
    Replies: 2
    Last Post: 10-13-2005, 04:37 PM
  7. [SOLVED] VB script and disappearing information
    By Abi in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 01-17-2005, 05:06 PM

Tags for this Thread

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