+ Reply to Thread
Results 1 to 14 of 14

fill range of cells with corresponding data

  1. #1
    Forum Contributor
    Join Date
    11-28-2013
    Location
    Ljubljana
    MS-Off Ver
    Office 365
    Posts
    1,054

    fill range of cells with corresponding data

    Hello everyone
    I have attached workbook, which have data entry to made layout according to value enter
    as the follow
    I enter Start well in sheet1 in cell L2, As my example A1
    typical layout will fill according to is in sheet3,
    so first sample will be loaded in B2 in sheet layout, but if any other value in L2, for example if its B2, it will be in C3 and so on as in sheet3

    and the maximum for each letter is 12, mean it start for the letter A, B, C, D, E, F, G, H (1 -12)

    the problem now how can create correct column in C in Sheet1 and start with cell like column E
    then transfer it to layout to corresponding value as sheet3

    I don't know if my explanation its clear but I will also attach photo for plate used in my work
    Attached Images Attached Images
    Attached Files Attached Files

  2. #2
    Forum Guru
    Join Date
    08-05-2004
    Location
    NJ
    MS-Off Ver
    365
    Posts
    13,582

    Re: fill range of cells with corresponding data

    I think this is what you are asking for. In Layout B2 copied across and down
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Can you give an example of what your sheet1 would look like if L2 was to start with B6 for example?
    ChemistB
    My 2?

    substitute commas with semi-colons if your region settings requires
    Don't forget to mark threads as "Solved" (Edit First post>Advanced>Change Prefix)
    If I helped, Don't forget to add to my reputation (click on the little star at bottom of this post)

    Forum Rules: How to use code tags, mark a thread solved, and keep yourself out of trouble

  3. #3
    Forum Contributor
    Join Date
    11-28-2013
    Location
    Ljubljana
    MS-Off Ver
    Office 365
    Posts
    1,054

    Re: fill range of cells with corresponding data

    @ChemistB thank you so much for your post
    as you see first need to correct data in column C in sheet1 because as you see in photo the maximum for each letter A to H is 12 , so after reach for exmple A12 next sample will be in B1 and after B12 next sample will be in C1 and so on

  4. #4
    Forum Contributor
    Join Date
    11-28-2013
    Location
    Ljubljana
    MS-Off Ver
    Office 365
    Posts
    1,054

    Re: fill range of cells with corresponding data

    Please kindly see example start from B6

    I think if we can use column D in sheet1 as helper to identify which row start to put formula
    for example if H2 contain B6 so will look to column D for matched value then start to fill column A, B, C as the follow
    in column A first row will be CONCATENATED formula between Cell H1 and I1 ( in my example is A18)
    second row in column A will be like this formula =IF(OR($A$1="",C2=""),"",LEFT(A1,FIND("SPL",A1)*3)&(SUMPRODUCT(MID(0&A1,LARGE(INDEX(ISNUMBER(--MID(A1,ROW(INDIRECT("1:"&LEN(A1))),1))*ROW(INDIRECT("1:"&LEN(A1))),0),ROW(INDIRECT("1:"&LEN(A1))))+1,1)*10^ROW(INDIRECT("1:"&LEN(A1)))/10))+1)
    as in original file


    in column B will get data from H3 till finish number of sample

    and column C its combination between three column A,B,D in three-line with formula =CONCATENATE(A6,CHAR(10),B6,CHAR(10),C6)
    Attached Files Attached Files
    Last edited by mazan2010; 08-04-2020 at 07:48 PM.

  5. #5
    Forum Contributor
    Join Date
    11-28-2013
    Location
    Ljubljana
    MS-Off Ver
    Office 365
    Posts
    1,054

    Re: fill range of cells with corresponding data

    Hello everyone
    here my new file with some trial to solve problem with change value of start well as in sheet name my trail but still can't solve it even by using some helper column
    and also I make sheet case result for example and case layout to show what the correct data to be
    I hope it will be clear, I try to do my best to solve this issue but my knowledge still very little in comparing to expert here



    As in example in sheet case result L3 and M2 will be change from time to time, according to this start cell in column B will be change according matched Value in F column
    Attached Files Attached Files

  6. #6
    Forum Contributor
    Join Date
    11-28-2013
    Location
    Ljubljana
    MS-Off Ver
    Office 365
    Posts
    1,054

    Re: fill range of cells with corresponding data

    If there is any advice even with macro how can I do these

  7. #7
    Forum Expert bebo021999's Avatar
    Join Date
    07-22-2011
    Location
    Vietnam
    MS-Off Ver
    Excel 2016
    Posts
    9,463

    Re: fill range of cells with corresponding data

    I use 1 helper column A only to produce list increasing string:

    A1:
    Please Login or Register  to view this content.
    From A2:
    Please Login or Register  to view this content.
    Then B2 sheet Layout:
    Please Login or Register  to view this content.
    Fill all table
    Attached Files Attached Files
    Quang PT

  8. #8
    Forum Contributor
    Join Date
    11-28-2013
    Location
    Ljubljana
    MS-Off Ver
    Office 365
    Posts
    1,054

    Re: fill range of cells with corresponding data

    @bebo021999
    Wow Amazing Dear bebo for this great solution, I'm very thankful your help and support

  9. #9
    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,647

    Re: fill range of cells with corresponding data

    If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED.
    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.

  10. #10
    Forum Contributor
    Join Date
    11-28-2013
    Location
    Ljubljana
    MS-Off Ver
    Office 365
    Posts
    1,054

    Re: fill range of cells with corresponding data

    But there is small notice that this not have limit for data generated, if you see file in post number 5 you will find L1 in sheet case result refers to how many sample will be work, so generated data need to be fitted to it

  11. #11
    Forum Expert bebo021999's Avatar
    Join Date
    07-22-2011
    Location
    Vietnam
    MS-Off Ver
    Excel 2016
    Posts
    9,463

    Re: fill range of cells with corresponding data

    Jusi add a logical statement at beginning to test:
    A2 sheet 1:
    =IF(ROWS($1:1)>=$H$4,"",Initial-formula)
    With H4 contain number of samples
    Attached Files Attached Files

  12. #12
    Forum Contributor
    Join Date
    11-28-2013
    Location
    Ljubljana
    MS-Off Ver
    Office 365
    Posts
    1,054

    Re: fill range of cells with corresponding data

    Work very well
    is there is way to make data validation for number of sample is matched with selected start well
    I mean total well in layout is 96 well, so if start well is A1 and number of sample is 96 it will be good, but in case start well other than A1 and select number of sample 96 or any other number
    for example
    if I select start well C2, it's meaning the rest will be available is 71 sample, so 96 can't accept

  13. #13
    Forum Expert bebo021999's Avatar
    Join Date
    07-22-2011
    Location
    Vietnam
    MS-Off Ver
    Excel 2016
    Posts
    9,463

    Re: fill range of cells with corresponding data

    In H4: count number of sample with start Well in H2:

    =96-(CODE(H2)-65)*12-RIGHT(H2,LEN(H2)-1)+1

  14. #14
    Forum Contributor
    Join Date
    11-28-2013
    Location
    Ljubljana
    MS-Off Ver
    Office 365
    Posts
    1,054

    Re: fill range of cells with corresponding data

    THANK YOU SO MUCH bEBO021999
    ITS WORK VERY WELL

+ 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] Duplicate data for multiple cells by Auto Fill / Fill Down - Dynamic Table
    By ITY in forum Excel Programming / VBA / Macros
    Replies: 12
    Last Post: 07-23-2019, 09:57 AM
  2. [SOLVED] Fill a range of cells
    By leo73pk in forum Excel General
    Replies: 9
    Last Post: 10-27-2017, 02:43 PM
  3. [SOLVED] Search Range for NonBlank Cells, Fill Down only one cell below NOT all Blank cells belof
    By safari20WDG in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 09-07-2017, 01:23 AM
  4. [SOLVED] Fill range of cells based on matches in multiple cells
    By VidOs in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 02-17-2017, 01:08 PM
  5. Skip x cells and fill (Fill/create weekly average from 7 days and fill down)
    By tunafishes in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 04-18-2016, 03:43 AM
  6. Replies: 15
    Last Post: 06-24-2014, 09:27 AM
  7. How to color-fill blank cells, then once data is entered cell is no-fill
    By hatemail13 in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 03-28-2013, 07:57 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