+ Reply to Thread
Results 1 to 7 of 7

automatically populate a new sheet with values

  1. #1
    Registered User
    Join Date
    05-14-2017
    Location
    Detroit MI
    MS-Off Ver
    Office 365
    Posts
    14

    automatically populate a new sheet with values

    Hi -

    I am in need a vba script that when executed would go through an excel spreadsheet and do the following :
    - analyze each row
    - within a given row - say if column F and column J has numbers in it - take that data from that row and copy A, B, C and F into another row into the new sheet. Then take that data from that row and copy A, B, C and J into another row into the new sheet. The result would be new two new rows and four columns in a new sheet.
    If you can lead me into the right direction that would be great !

    Thanks - jerry

  2. #2
    Forum Expert
    Join Date
    12-14-2012
    Location
    London England
    MS-Off Ver
    MS 365 Office Suite.
    Posts
    8,448

    Re: automatically populate a new sheet with values

    You can do the bulk of that using two formulas in the new sheet.

    Then a simple sort.

    Ok

    Put this formula into cell A1 on sheet 2 and fill to D1

    Formula: copy to clipboard
    Please Login or Register  to view this content.


    Put this Forula into E1

    Formula: copy to clipboard
    Please Login or Register  to view this content.


    Select A1 to E1 and fill down.

    Copy Paste Values

    Sort by column E

    Delete Column E

    As a Macro that is:-

    Please Login or Register  to view this content.
    Attached Files Attached Files
    Last edited by mehmetcik; 05-14-2017 at 09:00 AM.
    My General Rules if you want my help. Not aimed at any person in particular:

    1. Please Make Requests not demands, none of us get paid here.

    2. Check back on your post regularly. I will not return to a post after 4 days.
    If it is not important to you then it definitely is not important to me.

  3. #3
    Registered User
    Join Date
    05-14-2017
    Location
    Detroit MI
    MS-Off Ver
    Office 365
    Posts
    14

    Re: automatically populate a new sheet with values

    ok this is very good - I will play around with it - thank you very much ! jerry

  4. #4
    Registered User
    Join Date
    05-14-2017
    Location
    Detroit MI
    MS-Off Ver
    Office 365
    Posts
    14

    Re: automatically populate a new sheet with values

    one more question - it looks as if the macro is checking to see if there is a value in column "F" - sheet 1. If not - it stops. Is there a way to check to see if there is only a value in column A, then stop ??

  5. #5
    Forum Expert
    Join Date
    12-14-2012
    Location
    London England
    MS-Off Ver
    MS 365 Office Suite.
    Posts
    8,448

    Re: automatically populate a new sheet with values

    Maybe change

    Please Login or Register  to view this content.

    To:

    Please Login or Register  to view this content.

  6. #6
    Registered User
    Join Date
    05-14-2017
    Location
    Detroit MI
    MS-Off Ver
    Office 365
    Posts
    14

    Re: automatically populate a new sheet with values

    Hi - I have changes the following which seems to be doing the trick :
    Changed :
    =IF(AND(ISNUMBER(

    To :
    =IF(OR(ISNUMBER(

    The desired result is located here

    https://drive.google.com/file/d/0B_G...ew?usp=sharing
    - see sheet 'Results'

    If a value is in say column J, How do I bring both I and J ? That is, I and J are related so I would like to have I on the row as well as J.
    Also - for example - column E is related to column F - so I would like to bring both over.
    Again, see the Results sheet for the desired outcome.

    Thanks - jerry

  7. #7
    Registered User
    Join Date
    05-14-2017
    Location
    Detroit MI
    MS-Off Ver
    Office 365
    Posts
    14

    Re: automatically populate a new sheet with values

    hi - thanks again for your help - I greatly appreciate it !
    Almost there

    I am still stuck on the last part - any thoughts ? jerryr

+ 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] Automatically Extract comment/data from Sheet 1 to populate Sheet 2
    By nadagoat83 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 05-13-2014, 08:07 AM
  2. [SOLVED] Need sheet to automatically populate next unique entry entered on a different sheet
    By NS4Excel in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 01-23-2014, 05:15 PM
  3. Combining multiple spreadsheets to automatically populate a new sheet
    By dlocos in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 06-30-2013, 10:16 PM
  4. put the value in a textbox and populate relative values in other textboxes automatically
    By sharad.sony in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 04-11-2013, 03:15 AM
  5. Automatically populate cells based on values in another cell
    By mweick in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 02-04-2013, 02:47 PM
  6. Automatically populate main sheet
    By ASP2012 in forum Excel - New Users/Basics
    Replies: 3
    Last Post: 07-09-2012, 02:00 PM
  7. Populate sheet automatically..! (CHEQUE-RECORD SLIP)
    By e4excel in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 10-11-2009, 02:24 AM

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