+ Reply to Thread
Results 1 to 5 of 5

Looping and outputting data

  1. #1
    Registered User
    Join Date
    06-10-2015
    Location
    Canada
    MS-Off Ver
    2010
    Posts
    10

    Looping and outputting data

    Hi guys,

    I am pretty new to programming. In fact, I've never done it before this, but I need to write a program as part of something I'm doing at work. I've watched a few videos on the concepts, but it's not something I'm grasping easily so I thought I'd reach out for help on a forum.

    Essentially, I need to read information from a (growing) excel document and output the desired information on another sheet. What I mean by that is the following:

    For illustration purposes, let's say I have the following information, and each day I add a new person, car model, and year:


    Name Car Model Year

    Bob Honda 2010
    Joe Honda 2009
    Gab Toyota 2010


    I'd like to read all of the data, and output on another tab sheet, the following information:


    Number of Hondas 2
    Number of Toyotas 1


    Perhaps looping wouldn't be the best option, but I thought if I looped through the information and stored it in some variable, then outputted that variable onto another sheet it would work. Could be a dumb idea; if anyone has any other suggestion as to how to do this on excel, feel free.

    The reason I don't just manually do this is because the file gets quite large, with a significant amount of information to sift through.


    Thanks guys, and I appreciate any help.

  2. #2
    Forum Expert Mumps1's Avatar
    Join Date
    10-10-2012
    Location
    Toronto, Canada
    MS-Off Ver
    Excel 2010, 365
    Posts
    8,080

    Re: Looping and outputting data

    Try:
    Please Login or Register  to view this content.
    You can say "THANK YOU" for help received by clicking the Star symbol at the bottom left of the helper's post.
    Practice makes perfect. I'm very far from perfect so I'm still practising.

  3. #3
    Registered User
    Join Date
    06-10-2015
    Location
    Canada
    MS-Off Ver
    2010
    Posts
    10

    Re: Looping and outputting data

    Thanks, I will test this out!

  4. #4
    Registered User
    Join Date
    06-10-2015
    Location
    Canada
    MS-Off Ver
    2010
    Posts
    10

    Re: Looping and outputting data

    Hi!

    Thank you once again for your response, Mumps.

    I tried your code. It is very close to what I want, but when I used your code it ends up being like this, each row having a cell of its own:

    Number of 0
    Number of Name 1
    Number of Bob 1
    Number of Joe 1
    Number of Gab 1

    I guess what i'd like to do is:
    Make each of these go in a cell on their own, vertically downwards.

    Number of Hondas
    Number of Toyotas

    And to the left of them, in their own cell:
    2
    1

  5. #5
    Forum Expert Mumps1's Avatar
    Join Date
    10-10-2012
    Location
    Toronto, Canada
    MS-Off Ver
    Excel 2010, 365
    Posts
    8,080

    Re: Looping and outputting data

    Maybe:
    Please Login or Register  to view this content.

+ 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. Outputting data from list in one worksheet to another
    By banessa in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 11-11-2012, 04:09 AM
  2. Analyzing and outputting data without repeating entries.
    By timbreeding in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 05-15-2009, 11:53 AM
  3. Replies: 2
    Last Post: 06-24-2008, 05:07 PM
  4. outputting data
    By excelguru in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 04-06-2008, 02:59 AM
  5. Outputting data that is constantly overwritten
    By Zaphius in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 03-30-2007, 01:26 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