+ Reply to Thread
Results 1 to 4 of 4

Fill a column with values from another column until you get to a duplicate value

  1. #1
    Registered User
    Join Date
    02-13-2019
    Location
    canada
    MS-Off Ver
    2010
    Posts
    31

    Fill a column with values from another column until you get to a duplicate value

    Hello,

    I am trying to fill a column with values from another column stopping when I hit the first "Centre" value.

    Essentially in the attached work book, I want to fill Column A from cell A3 down using the values in Column T, but once the first "centre". Cell N3 will vary depending on an inputted diameter.

    I think I have successfully attached a file.
    Attached Files Attached Files

  2. #2
    Valued Forum Contributor
    Join Date
    02-10-2019
    Location
    Georgia, USA
    MS-Off Ver
    Office 365
    Posts
    890

    Re: Fill a column with values from another column until you get to a duplicate value

    Are you sure you attached the right file? You talk about Column T but there aren't values in column T. And I'm sorry, but what do you mean by "the first Centre" value?

  3. #3
    Registered User
    Join Date
    02-13-2019
    Location
    canada
    MS-Off Ver
    2010
    Posts
    31

    Re: Fill a column with values from another column until you get to a duplicate value

    Sorry it was column T but I had to delete a bunch of columns and missed that, It is supposed to be Column N.

    When I say first "Centre" I mean, the first "Centre" in Column N.

    If M2 was 50 column A would be:
    0
    0.5
    1
    1.5
    2
    3
    4
    5
    6
    7
    8
    9
    10
    20
    30
    40
    50
    Centre

    if M2 was 30 column A would be:
    0
    0.5
    1
    1.5
    2
    3
    4
    5
    6
    7
    8
    9
    10
    20
    30
    Centre

  4. #4
    Valued Forum Contributor
    Join Date
    02-10-2019
    Location
    Georgia, USA
    MS-Off Ver
    Office 365
    Posts
    890

    Re: Fill a column with values from another column until you get to a duplicate value

    Well, you could put this in A3 and copy it down and it would work based on the data you've provided:

    =IF(M$2<M3,"Centre",M3)

    However, it assumes that:
    a. The numbers listed will always in in ascending order
    b. That the number in M2 will always be exactly as a number in the list.

    Are these assumptions correct and does the logic need to include more rules?

+ 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. How do I colour fill cells in Column A based on values in Column B
    By bearcovier in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 10-17-2019, 08:12 AM
  2. Replies: 8
    Last Post: 07-04-2018, 10:03 AM
  3. [SOLVED] Fill up a column in one work sheet by matching column values in 2 worksheets
    By marimuthuravi in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 06-11-2018, 11:38 PM
  4. Replies: 9
    Last Post: 11-07-2017, 05:27 AM
  5. Replies: 5
    Last Post: 02-18-2016, 12:51 PM
  6. [SOLVED] How to fill an array with values in column C based on Column D date value of Today
    By jrtraylor in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 01-10-2016, 07:44 PM
  7. Remove rows with duplicate values in one column based on value of another column
    By jolleyje in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 03-15-2013, 06:20 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