+ Reply to Thread
Results 1 to 27 of 27

get all non blank values and fill another table

  1. #1
    Registered User
    Join Date
    05-15-2016
    Location
    Greece
    MS-Off Ver
    2007
    Posts
    30

    get all non blank values and fill another table

    Hi 2 all,

    I have a table in excel 2007 which looks like this:

    1.png

    John Jim Tom Nick
    9:00-10:00 A1
    10:00-11:00 B5 B5
    11:00-12:00 B3 D2
    12:00-13:00 B5 B5 10
    13:00-14:00 C4 C4 C5



    ClassRooms
    A1 B5 B5 B3 D2 B5 B5 C4 C4 C5






    The A1:E6 table is a timetable.

    I want 2 get all non blank values of that table and fill the G11:k12 table which is the classroom table.

    Any Ideas ?

    Ty very much


    ps: Cant c the image I upload .... sry
    Attached Images Attached Images
    Last edited by vardis; 05-15-2016 at 04:09 PM.

  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,800

    Re: get all non blank values and fill another table

    What results do you expect to see in the classrooms table? I don't see how it relates to the timetable.
    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
    Registered User
    Join Date
    05-15-2016
    Location
    Greece
    MS-Off Ver
    2007
    Posts
    30

    Re: get all non blank values and fill another table

    The timetable holds 10 non blank values.

    The data will fit in 5x2 table which are the classrooms.

    I wish I could upload the screenshot.

    Sry for the late responce

  4. #4
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: get all non blank values and fill another table

    Please upload the workbook and manually add the results you expect. Clearly indicate which cells are data and which are results.
    Richard Buttrey

    RIP - d. 06/10/2022

    If any of the responses have helped then please consider rating them by clicking the small star icon below the post.

  5. #5
    Registered User
    Join Date
    05-15-2016
    Location
    Greece
    MS-Off Ver
    2007
    Posts
    30

    Re: get all non blank values and fill another table

    How do I upload workbook ?

  6. #6
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: get all non blank values and fill another table


  7. #7
    Registered User
    Join Date
    05-15-2016
    Location
    Greece
    MS-Off Ver
    2007
    Posts
    30

    Re: get all non blank values and fill another table

    ok I just upload it
    Attached Files Attached Files

  8. #8
    Forum Moderator
    Join Date
    01-21-2014
    Location
    St. Joseph, Illinois U.S.A.
    MS-Off Ver
    Office 365 v 2403
    Posts
    13,406

    Re: get all non blank values and fill another table

    Try array-entering this formula in G11 and fill across to column K. Then simply copy that already selected range and paste to G15, G19, G23 and G27.

    Formula: copy to clipboard
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    If you aren’t familiar with array-entered formulas array enter means the formula must be committed from edit mode by simultaneously pressing and holding down Ctrl and Shift while hitting Enter.

    By the way. Your profile says Excel 2007. The upload is an .xls file. If backward compatibility is an issue this formula will not work there. The IFERROR function is not available until 2007.

    Edit Had to edit. Posted wrong formula.
    Last edited by FlameRetired; 05-15-2016 at 06:45 PM.
    Dave

  9. #9
    Registered User
    Join Date
    05-15-2016
    Location
    Greece
    MS-Off Ver
    2007
    Posts
    30

    Re: get all non blank values and fill another table

    I couldn't upload the 2007 file for a reason so I had 2 roll back.

    I use 2007 so I ll give it a try I ll answer back in a while.

    thanks anyway

  10. #10
    Registered User
    Join Date
    05-15-2016
    Location
    Greece
    MS-Off Ver
    2007
    Posts
    30

    Re: get all non blank values and fill another table

    If you aren’t familiar with array-entered formulas array enter means the formula must be committed from edit mode by simultaneously pressing and holding down Ctrl and Shift while hitting Enter.

    I have an issue with that : )

  11. #11
    Registered User
    Join Date
    05-15-2016
    Location
    Greece
    MS-Off Ver
    2007
    Posts
    30

    Re: get all non blank values and fill another table

    Is the formula bar the edit mode ?

    I get an error message saying : The formula u typed contains an error

  12. #12
    Forum Moderator
    Join Date
    01-21-2014
    Location
    St. Joseph, Illinois U.S.A.
    MS-Off Ver
    Office 365 v 2403
    Posts
    13,406

    Re: get all non blank values and fill another table

    vardis

    Ooops. My mistake. I posted formula from the wrong cell. Use this instead in G11.
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    and yes click in the formula bar and the cell will be in edit mode.
    Last edited by FlameRetired; 05-15-2016 at 07:14 PM.

  13. #13
    Registered User
    Join Date
    05-15-2016
    Location
    Greece
    MS-Off Ver
    2007
    Posts
    30

    Re: get all non blank values and fill another table

    I still get an error message

  14. #14
    Forum Moderator
    Join Date
    01-21-2014
    Location
    St. Joseph, Illinois U.S.A.
    MS-Off Ver
    Office 365 v 2403
    Posts
    13,406

    Re: get all non blank values and fill another table

    The value in F11 has extra spaces that keep it from matching. It has

    9:00 - 10:00 and needs to be
    9:00-10:00

  15. #15
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: get all non blank values and fill another table

    One thing I'd bear in mind for other projects and which will make your data much more usable and easier to handle is to use proper Date and Time numbers and not a string like say "10:00-11:00".

    Use just the upper boundary of the time slot. i.e. just 11:00.

  16. #16
    Registered User
    Join Date
    05-15-2016
    Location
    Greece
    MS-Off Ver
    2007
    Posts
    30

    Re: get all non blank values and fill another table

    Ty very much both for advise and solution

    Now i have to extend the timetable and fit the classes in more classrooms.

    I ll try to extend your function to my needs.

    Anyway it works perfect if i have prob i ll continue the posts.

    Thank you very much anyway.

  17. #17
    Registered User
    Join Date
    05-15-2016
    Location
    Greece
    MS-Off Ver
    2007
    Posts
    30

    Re: get all non blank values and fill another table

    It works perfect thank u very much.

    There is another issue that we should solve, but the function works perfect.

    Thank u

  18. #18
    Forum Moderator
    Join Date
    01-21-2014
    Location
    St. Joseph, Illinois U.S.A.
    MS-Off Ver
    Office 365 v 2403
    Posts
    13,406

    Re: get all non blank values and fill another table

    You are welcome. Glad it works and thank you for the feedback.

  19. #19
    Registered User
    Join Date
    05-15-2016
    Location
    Greece
    MS-Off Ver
    2007
    Posts
    30

    Re: get all non blank values and fill another table

    The second issue i have to solve is:

    If a teacher has a 2 hours lecture then he should stay in the same class.

    We have a function that "kills" the blank cells and transfer the timetable to classrooms. Now we need a function that will keep the lecturer in the same class if he has a 2 hour lecture.

    Any Ideas?

  20. #20
    Registered User
    Join Date
    05-15-2016
    Location
    Greece
    MS-Off Ver
    2007
    Posts
    30

    Re: get all non blank values and fill another table

    Here is the workbook

  21. #21
    Forum Moderator
    Join Date
    01-21-2014
    Location
    St. Joseph, Illinois U.S.A.
    MS-Off Ver
    Office 365 v 2403
    Posts
    13,406

    Re: get all non blank values and fill another table

    Do I understand that you want this:


    John
    Mairy
    Tom
    Jim
    Ann
    Tom
    Nick
    9:00-10:00
    A1
    A2
    A5
    A3
    C5
    10:00-11:00
    A4
    A2
    B5
    B7
    11:00-12:00
    B3
    A7
    D1
    B3
    D2
    B3
    12:00-13:00
    A9
    B5
    A1
    A9
    B3
    13:00-14:00
    C4
    B5
    C4
    C2



    To be this:



    John
    Mairy
    Tom
    Jim
    Ann
    Tom
    Nick
    9:00-10:00
    A1
    A2
    A5
    A3
    C5
    10:00-11:00
    A2
    A5
    B5
    B7
    11:00-12:00
    B3
    A5
    B5
    A1
    D2
    B7
    12:00-13:00
    A9
    B5
    A1
    D2
    B7
    13:00-14:00
    C4
    B5
    D2
    B7



    And can you supply a list of all the class room numbers?
    Last edited by FlameRetired; 05-18-2016 at 08:28 PM.

  22. #22
    Registered User
    Join Date
    05-15-2016
    Location
    Greece
    MS-Off Ver
    2007
    Posts
    30

    Re: get all non blank values and fill another table

    Hi there and Good morning ... is morning in Greece 10:25 : )

    I upload a new workbook.

    What i need is :

    If a lecturer have a 2 hour lecture (this is ponted out by the formatted cells)(table 1) then he should continue in the same classroom
    (formatted cells classroom tables)

    in example : There is a 2 hour lecture:

    12:00-13:00 B2
    13:00-14:00 B2

    In the corresponding classrooms table the B2 department should be in classroom 2 for both hours.

    Same for B3 for 11:00 -12:00, 12:00-13:00

    I can imagine that will be a combination of If, match and index functions but i cant actually make it work.
    Attached Files Attached Files

  23. #23
    Forum Moderator
    Join Date
    01-21-2014
    Location
    St. Joseph, Illinois U.S.A.
    MS-Off Ver
    Office 365 v 2403
    Posts
    13,406

    Re: get all non blank values and fill another table

    Is this what you are wanting?



    I
    J
    K
    L
    M
    N
    O
    P
    Q
    R
    S
    8
    ClassRooms
    9
    10
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    9:00-10:00
    A1
    A2
    A5
    A3
    C5
    12
    13
    14
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    15
    10:00-11:00
    A4
    A2
    B5
    B7
    16
    17
    18
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    19
    11:00-12:00
    B3
    A7
    D1
    B3
    D2
    B3
    20
    21
    22
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    23
    12:00-13:00
    A9
    B5
    A1
    A9
    B3
    24
    25
    26
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    27
    13:00-14:00
    C4
    C5
    B5
    C4
    C2

  24. #24
    Registered User
    Join Date
    05-15-2016
    Location
    Greece
    MS-Off Ver
    2007
    Posts
    30

    Re: get all non blank values and fill another table

    With one simple word ..... Y E S : )

    Im gratefull

  25. #25
    Registered User
    Join Date
    05-15-2016
    Location
    Greece
    MS-Off Ver
    2007
    Posts
    30

    Re: get all non blank values and fill another table

    I d appreciate if u upload the workbook : )

  26. #26
    Registered User
    Join Date
    05-15-2016
    Location
    Greece
    MS-Off Ver
    2007
    Posts
    30

    Re: get all non blank values and fill another table

    Is this the commercial forum ?

  27. #27
    Forum Moderator
    Join Date
    01-21-2014
    Location
    St. Joseph, Illinois U.S.A.
    MS-Off Ver
    Office 365 v 2403
    Posts
    13,406

    Re: get all non blank values and fill another table

    No. We 'work' for free on this side of the forum.

    There is a Commercial Services section though.

    Thanks for asking ... and the work book is attached.

    New formula is

    Formula: copy to clipboard
    Please Login or Register  to view this content.

+ 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. Using Vlookup fill in the blank cells of the second table
    By sabubakaralis in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 04-02-2015, 11:05 AM
  2. fill blank values / expression
    By Danielle22 in forum Access Tables & Databases
    Replies: 1
    Last Post: 03-30-2014, 07:01 AM
  3. Replies: 1
    Last Post: 04-11-2013, 01:02 PM
  4. [SOLVED] How to fill blank cells_Pivot table
    By raja_puligadda in forum Excel General
    Replies: 9
    Last Post: 12-20-2012, 02:36 AM
  5. Replies: 0
    Last Post: 10-13-2011, 06:31 PM
  6. Fill blank cell with established values
    By emmysou in forum Excel General
    Replies: 2
    Last Post: 08-29-2011, 12:01 PM
  7. Help: How do I fill a column with values if it is blank?
    By limshady411 in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 11-14-2005, 05:45 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