+ Reply to Thread
Results 1 to 20 of 20

Looking for Pair of Values in Same Column - VBA

Hybrid View

  1. #1
    Registered User
    Join Date
    10-18-2018
    Location
    CA, U.S.A
    MS-Off Ver
    2010
    Posts
    10

    Re: Looking for Pair of Values in Same Column - VBA

    Hi Akuini, that is what I'd like the code to do!

    I wanted to ask, if you don't mind. If I wanted to do the opposite, and look for values 0 to 1 in Column H, instead of values of 1 to 0 like before. How would you write the code. The new G:H values would be added to Column D, instead of Column C.

    Can this code be written with the code from before, so they can be run the same time. If it is difficult to write together, that'll be ok.

    Capture15.PNG

    Thank you Akuini! I appreciate any help you can give me.

  2. #2
    Valued Forum Contributor
    Join Date
    02-02-2016
    Location
    Indonesia
    MS-Off Ver
    Office 365
    Posts
    1,028

    Re: Looking for Pair of Values in Same Column - VBA

    Using your example above:
    In Col B data ends at row 6, but in col C data ends at row 5.
    If you import new data (then run the macro) where do you fill the data in col C, from row 6 or 7?

  3. #3
    Registered User
    Join Date
    10-18-2018
    Location
    CA, U.S.A
    MS-Off Ver
    2010
    Posts
    10

    Re: Looking for Pair of Values in Same Column - VBA

    Hi Akuini. If new data is imported and the macro is run, the new data will fill in the next available row in Column C (In the case in the example, this will be Row 7). All new data, when macro is run, will imported to the next available cell in each column.

    Thanks Akina! You've been great. I appreciate your patience.

  4. #4
    Valued Forum Contributor
    Join Date
    02-02-2016
    Location
    Indonesia
    MS-Off Ver
    Office 365
    Posts
    1,028

    Re: Looking for Pair of Values in Same Column - VBA

    Quote Originally Posted by awsexcel123 View Post
    Hi Akuini. If new data is imported and the macro is run, the new data will fill in the next available row in Column C (In the case in the example, this will be Row 7). All new data, when macro is run, will imported to the next available cell in each column.

    Thanks Akina! You've been great. I appreciate your patience.
    But next available cell in col C is row 6 not 7 ???

  5. #5
    Registered User
    Join Date
    10-18-2018
    Location
    CA, U.S.A
    MS-Off Ver
    2010
    Posts
    10
    Quote Originally Posted by Akuini View Post
    But next available cell in col C is row 6 not 7 ???
    Hi Akuini. Youre right. Last available or empty row in Column C would be Row 6. Thanks!

+ 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] Convert Single Pair of Columns to 3 Column (Pair) List
    By kencoburn in forum Excel General
    Replies: 7
    Last Post: 03-04-2017, 01:43 PM
  2. When first pair are matched, copy entry beside the column to another column
    By seanryano in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 05-22-2015, 11:14 AM
  3. From column A and column B data into 1 line pair
    By vutienhp in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 01-31-2015, 11:40 AM
  4. Replies: 6
    Last Post: 02-04-2014, 12:27 PM
  5. Replies: 2
    Last Post: 01-15-2006, 05:10 PM
  6. [SOLVED] pair single column to multiple column
    By Ross in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 09-05-2005, 10:05 PM
  7. [SOLVED] pair single column to multiple column
    By Ross in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 06-01-2005, 06:05 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