+ Reply to Thread
Results 1 to 5 of 5

Auto populate range of rows and columns with text based on absolute value

  1. #1
    Registered User
    Join Date
    11-21-2017
    Location
    Khoabr, Saudi Arabia
    MS-Off Ver
    2007
    Posts
    3

    Question Auto populate range of rows and columns with text based on absolute value

    Greetings!

    I need some help in the following scenario:

    I am trying to populate a range of rows and columns with a predefined text and value (absolute). I have the excel sheet template where the scenario is explained in detail in the below link.

    https://www.dropbox.com/s/s9y3tijuhr...ATOR.xlsx?dl=0

    In summary:

    AI = 12
    AO = 11
    DI = 8
    DO = 8

    Will result in the following:
    ------------------------------------------> Range of 10 cells, if value exceeds 10, then continue on new row as shown below
    1 2 3 4 5 6 7 8 9 10
    |AI |AI |AI |AI |AI |AI |AI |AI |AI |AI|
    |AI |AI |AO|AO |AO|AO|AO|AO|AO|AO|
    |AO|DI |DI |DI |DI |DI |DI |DI|DI|DO|
    |DO|DO|DO|DO|DO|DO|DO|

    Any help is highly appreciated!!

    Thanks in advance!

  2. #2
    Valued Forum Contributor
    Join Date
    12-25-2013
    Location
    Singapore
    MS-Off Ver
    Excel 2016
    Posts
    506

    Re: Auto populate range of rows and columns with text based on absolute value

    hi mojian, first of all I think your result doesn't display correctly as there should be 12 "AO" instead?

    nevertheless, assume your sample data are in cells B5:C8 below are the formula that you can try copy/paste into cells B10:K13

    B10=MID(REPT($B$5,$C$5)&REPT($B$6,$C$6)&REPT($B$7,$C$7)&REPT($B$8,$C$8),(ROWS($B$10:$B10)-1)*10*2+(COLUMNS($B$10:B$10)*2-1),2)

    note: the assumption here is your text always 2 chars
    1. Click on the * Add Reputation if you think someone helped you
    2. Mark your thread as SOLVED when question is resolved

    Alvin

  3. #3
    Registered User
    Join Date
    11-21-2017
    Location
    Khoabr, Saudi Arabia
    MS-Off Ver
    2007
    Posts
    3

    Talking Re: Auto populate range of rows and columns with text based on absolute value

    Wow! Thanks a million alvin-chung!

    I had no idea the functions you used even exist in Excel!! With this I have now a new direction where I can try to solve this issue! Once I am able to jump down to a new row automatically, I will post your solution here!

    Once again, highly appreciate your genius!

  4. #4
    Registered User
    Join Date
    11-21-2017
    Location
    Khoabr, Saudi Arabia
    MS-Off Ver
    2007
    Posts
    3

    Thumbs up Re: Auto populate range of rows and columns with text based on absolute value

    Greetings World!

    Thanks to alvin-chung, the solution has been completed!
    I have attached the final result.

    You, sir alvin-chung, deserve a medal!

    Best regards!

    PS: Link to download the file: https://www.dropbox.com/s/1rf64oxhh9...ATOR.xlsx?dl=0
    Attached Files Attached Files

  5. #5
    Valued Forum Contributor
    Join Date
    12-25-2013
    Location
    Singapore
    MS-Off Ver
    Excel 2016
    Posts
    506

    Re: Auto populate range of rows and columns with text based on absolute value

    hi mojian,

    I'm glad that it helps and your sharing of the final result, thanks for the reputation

+ 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 auto populate rows based on one cell value
    By chollo1988 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 07-26-2016, 05:01 PM
  2. [SOLVED] Formula needed to auto populate in a range of cells on mult sprdsheets based on text input
    By excelteam777 in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 05-31-2015, 06:40 PM
  3. [SOLVED] Dynamic Named Range to Auto-Populate another range based on criteria
    By BeachRock in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 03-24-2014, 06:46 PM
  4. Auto-populate based on text in same row
    By PaulLor89 in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 03-26-2013, 03:52 PM
  5. Auto populate a third cell, based on data from two columns
    By 12ogboy78 in forum Excel - New Users/Basics
    Replies: 2
    Last Post: 03-25-2013, 02:21 AM
  6. Replies: 3
    Last Post: 02-28-2012, 11:54 AM
  7. Replies: 4
    Last Post: 06-23-2011, 03:25 PM

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