+ Reply to Thread
Results 1 to 3 of 3

Insert cells from a column on the basis of an evaluation

  1. #1
    Forum Contributor
    Join Date
    08-23-2010
    Location
    uk
    MS-Off Ver
    365 on Mac
    Posts
    146

    Insert cells from a column on the basis of an evaluation

    I have a series of columns such that...

    The first four show some outcomes (A or B)

    In the next four columns are some additional results - column 5 maps outcomes in 1, 6 maps outcomes in 2, 7 maps outcomes in 3 and 8 maps outcomes in column 4. Let's call these the 'partner' columns.

    Now, in the final column, I want to select an outcome from one of the first four columns depending on the results in the next four.

    So I want to say, use outcomes in this column (let's say the first, for example), and enter them in column 9, until outcome B appears.

    After that cell, switch so that the next outcome is taken from the column with two increasing results in the two previous cells (above) in its 'partner column' (lets say the result numbers go from 5 to 6 or 3 to 4). And continue with outcomes from that column until the next B appears. Repeat to fade.

    I will select the initial column - it may vary, but assume it's the first column of outcomes for the purposes of this explanation.

    Here's a selection of data:

    Outcomes Results Expected
    A B B A 3 0 1 2 A
    A B A B 4 0 2 2 A
    A B B A 5 0 2 3 A
    A B A B 6 0 3 3 A
    B A A B 6 1 4 3 B trigger - go to 2
    A B B A 7 1 4 4 B trigger - go to 4
    A B A B 8 1 5 4 B trigger - go to 3
    A B B A 9 1 5 5 B trigger - go to 4
    B A B A 9 2 5 6 A stay on col 4
    B A B A 9 3 5 7 A
    B A B A 9 4 5 8 A
    A B A B 10 4 6 8 B trigger - go to 3
    A B B A 11 4 6 9 B trigger - go to 4
    B A B A 11 5 6 10 A stay on col 4
    B A B A 11 6 6 11 A
    A B A B 12 6 7 11 B trigger - go to 3

    Where there are two possible choices, as on the first trigger, I'm going for the lower increasing pair 0 and 1, rather than 3 and 4.

    Many thanks in advance.
    Last edited by Supersadie; 04-23-2018 at 05:25 AM.

  2. #2
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,719

    Re: Insert cells from a column on the basis of an evaluation

    Will you please attach a sample Excel workbook? We are not able to work with or manipulate a picture of one and nobody wants to have to recreate your data from scratch.

    1. Make sure that your sample data are REPRESENTATIVE of your real data. The use of unrepresentative data is very frustrating and can lead to long delays in reaching a solution.

    2. Make sure that your desired results are also shown (mock up the results manually).

    3. Make sure that all confidential data is removed or replaced with dummy data first (e.g. names, addresses, E-mails, etc.).

    4. Try to avoid using merged cells as they cause lots of problems.

    Unfortunately the attachment icon doesn't work at the moment, so to attach an Excel file you have to do the following: just before posting, scroll down to Go Advanced and then scroll down to Manage Attachments. Now follow the instructions at the top of that screen.

    Please pay particular attention to point 2 (above): without an idea of your intended outcomes, it is often very difficult to offer appropriate advice.
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

  3. #3
    Forum Contributor
    Join Date
    08-23-2010
    Location
    uk
    MS-Off Ver
    365 on Mac
    Posts
    146

    Re: Insert cells from a column on the basis of an evaluation

    Managed to simplify this. Now resolved.

+ 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. Replies: 1
    Last Post: 03-20-2014, 09:35 AM
  2. [SOLVED] Basis on 1st column automatically select input for 2nd column from another worksheet
    By AasifKhan in forum Excel Formulas & Functions
    Replies: 27
    Last Post: 03-19-2014, 08:43 AM
  3. [SOLVED] Macro is inserting cells in one column, need it to insert in 2nd column as well
    By MR22 in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 06-01-2012, 10:23 AM
  4. Replies: 4
    Last Post: 06-30-2011, 04:11 PM
  5. Hide cells from evaluation
    By levatus in forum Excel General
    Replies: 5
    Last Post: 05-08-2011, 04:40 PM
  6. Unhide/insert the rows on the basis of randomly added tabs.
    By anushree3jan in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 04-26-2011, 03:06 AM
  7. Group data on the basis of common cells in a given column
    By greek in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 01-28-2011, 04:27 PM
  8. Insert data from one column into the empty cells of an adjacent column
    By kisboros in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 03-17-2010, 02:53 PM

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