+ Reply to Thread
Results 1 to 5 of 5

Formula that results in data input moving down a column based on another column cell data

  1. #1
    Registered User
    Join Date
    07-03-2013
    Location
    Coquitlam, BC Canada
    MS-Off Ver
    Excel 2003
    Posts
    5

    Formula that results in data input moving down a column based on another column cell data

    I am looking for a formula(s) in Col.3 (or other methods) to produce a result in Col. 3 from using the #s in Col.1 and Col. 2
    The formula would result in copying the Col.2 ID#s to auto populate (the specified Col.1 number of times) inputted sequentially from top of Col.3 moving downward.

    The formula would possibly be in Col. 3 and would result in taking the first ID# “#3” (in top of Col. 2) to appear 2 times moving downward from top of Col.3. Immediately after the top two #3s in Col. 3 would come three sets of the ID# “#4” and then immediately thereafter moving downward would come 4 sets of the ID# “#7” and then finally 1 set of the ID# “#11”.

    It seems to me it would be easy in VBA but I am looking for an EXCEL formula or other things to use in EXCEL spreadsheet without use of VBA.

    I have thought about VLOOKUP or OFFSET functions and possibly a COUNTIF but nothing seems to work for me. Anyone have any solutions please?

    Col.1 Col.2 Col.3
    Result of first 2 columns
    2 #3 #3
    3 #4 #3
    4 #7 #4
    1 #11 #4
    #4
    #7
    #7
    #7
    #7
    #11

  2. #2
    Registered User
    Join Date
    07-03-2013
    Location
    Coquitlam, BC Canada
    MS-Off Ver
    Excel 2003
    Posts
    5

    Re: Formula that results in data input moving down a column based on another column cell d

    Sorry the columns did not line up correctly in previously posted text.
    Here attached is an example of EXCEL spreadsheet for what I am looking for
    Attached Files Attached Files

  3. #3
    Forum Expert
    Join Date
    09-07-2014
    Location
    Israel
    MS-Off Ver
    office 365 for MAC
    Posts
    3,105

    Re: Formula that results in data input moving down a column based on another column cell d

    Hi,

    For some reason I'm getting an access denied blocking alert when trying to post my reply to this thread.

    This is what I'm getting:
    "Your request was not authorized due to its content (HTML code not allowed)."

    I only attached the file , I couldnt copy the formula in the text message.
    Attached Files Attached Files

  4. #4
    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,807

    Re: Formula that results in data input moving down a column based on another column cell d

    The error message tells you what the problem is!!! Something in your reply was being seen as HTML.

    Here's your formula:

    =IF(COUNTIF($C$2:C2,C2) < INDEX($A$1:$B$5,(MATCH(C2,$B:$B,0)),1),C2,INDEX($A$1:$B$5,(MATCH(C2,B:B,0))+1,2))

    Note the spaces I've added either side of the chevron < so that it's accepted.
    Last edited by AliGW; 05-22-2020 at 03:56 AM.
    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.

  5. #5
    Forum Expert
    Join Date
    09-07-2014
    Location
    Israel
    MS-Off Ver
    office 365 for MAC
    Posts
    3,105

    Re: Formula that results in data input moving down a column based on another column cell d

    Hi AliGW,
    Thanks, I wouldnt guess on my own what the problem was. Thanks for your help.

+ 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: 12
    Last Post: 11-03-2019, 08:28 AM
  2. Moving data around based on Index formula results
    By jyadayada in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 06-27-2016, 02:55 PM
  3. [SOLVED] Moving data between sheets in same workbook based off input in 1 column
    By Chris Brow in forum Excel General
    Replies: 4
    Last Post: 04-16-2016, 02:36 PM
  4. [SOLVED] Enter User Input Data into Next Free Cell based on Column Name
    By nKife in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 04-21-2015, 08:45 PM
  5. Search for specific cell based off Row/Column and input data into that cell
    By dizzle in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 09-02-2014, 01:53 PM
  6. Autofilter Column of Data Based on Cell Input
    By juliettelam in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 07-31-2014, 11:30 AM
  7. Moving data from a column to rows based on another calls data
    By Emmylou in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 02-13-2014, 07:42 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