+ Reply to Thread
Results 1 to 3 of 3

Create a new column based on count of two other columns

  1. #1
    Registered User
    Join Date
    10-21-2012
    Location
    USA
    MS-Off Ver
    Excel 2010
    Posts
    11

    Create a new column based on count of two other columns

    I am new to VBA scripting but what I want to create a new column that takes the values of two columns for example:

    Age Frequency
    6 1
    7 2
    8 5
    9 4

    And create a third column that shows the values of age based on the frequency. They should look as follows:

    6
    7
    7
    8
    8
    8
    8
    8
    9
    9
    9
    9

    So for a frequency of 2, the third column would place two 7's in the column. I have a large dataset of over 10000 values in my column following this format. What is the easiest way I should approach this in excel

    Thanks

  2. #2
    Forum Expert nilem's Avatar
    Join Date
    10-22-2011
    Location
    Ufa, Russia
    MS-Off Ver
    2013
    Posts
    3,377

    Re: Create a new column based on count of two other columns

    Hi ftcnt, try this
    Please Login or Register  to view this content.

  3. #3
    Registered User
    Join Date
    10-21-2012
    Location
    USA
    MS-Off Ver
    Excel 2010
    Posts
    11

    Re: Create a new column based on count of two other columns

    Thank you. It works perfectly

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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