+ Reply to Thread
Results 1 to 9 of 9

Fill cells based on coordinates

  1. #1
    Registered User
    Join Date
    01-23-2017
    Location
    Lebanon
    MS-Off Ver
    2010
    Posts
    9

    Fill cells based on coordinates

    Hello

    I have 3 tables in one sheet,

    Capture.PNG

    In the 2nd sheet, I want to fill in the cells based on the coordinates listed in the Row & Column tables, using the data in the 3rd table.

    Example, in the Column table, I have
    8, 9, 10, 11, 12, 13 ...
    Stands for Column H, I, J, K, L, M...

    So the values should be:
    H10 = O
    I6 = A
    I64 = R
    I57 = R
    I6 = R (if there are duplicates, the last filled one will do, doesn't matter)
    J37 = R
    J142 = R
    J130 = R
    K58 = R
    K52 = R
    K8 = A
    etc....

    I have an insane amount of data, and I used plenty of formulas to generate these cute little 3 tables in order to use to fill the required sheet.

    Any help writing a code or formula to that automatically fills such data is highly appreciated.

    Thanks in advance!

  2. #2
    Valued Forum Contributor bulina2k's Avatar
    Join Date
    11-20-2012
    Location
    Urziceni, Ialomita, Romania
    MS-Off Ver
    2019 and 365
    Posts
    861

    Re: Fill cells based on coordinates

    I think formula would be quicker in this case:
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    F4 = cell with the row nr
    F5 = cell with the column number
    .. and don't forget to have fun!
    Bogdan.

    mark SOLVED and Add Reputation if my answer pleases you

  3. #3
    Valued Forum Contributor kasan's Avatar
    Join Date
    07-22-2009
    Location
    Riga, Latvia
    MS-Off Ver
    Excel 2010
    Posts
    680

    Re: Fill cells based on coordinates

    Hi,
    Could you please upload excel file with your sample data?
    Insane amount of data - but number of columns in each table is the same, right?

  4. #4
    Registered User
    Join Date
    01-23-2017
    Location
    Lebanon
    MS-Off Ver
    2010
    Posts
    9

    Re: Fill cells based on coordinates

    Hello, thank you for the reply.
    I don't think this will work, the 2nd sheet size is different, and doesn't have the same format.
    I will upload the excel file in the next reply.
    Thanks

  5. #5
    Registered User
    Join Date
    01-23-2017
    Location
    Lebanon
    MS-Off Ver
    2010
    Posts
    9

    Re: Fill cells based on coordinates

    Excel sheet
    I uploaded to dropbox.
    Attach option didn't work.

    I basically have one sheet per week.
    And I need to fill this for an entire year, for multiple employees...

    The weeks data should be filled in the last sheet, Schedule.
    I created a Test sheet, the one I attached the image from in my original post.

    Based on the daily tasks, each project entry in the Schedule sheet should have a code, R, A, O, etc...
    These should be filled from each weekly sheet.

    Thanks for the help.

    https://www.dropbox.com/s/mguzz6x25x...heet.xlsx?dl=0

  6. #6
    Registered User
    Join Date
    01-23-2017
    Location
    Lebanon
    MS-Off Ver
    2010
    Posts
    9

    Re: Fill cells based on coordinates

    It doesn't need to be based on the coordinates.

    If you disregard the 3 tables method, is there a way to automate the filling of the Schedule sheet from the data in each weekly sheet?

    Thanks for the help.

  7. #7
    Valued Forum Contributor kasan's Avatar
    Join Date
    07-22-2009
    Location
    Riga, Latvia
    MS-Off Ver
    Excel 2010
    Posts
    680

    Re: Fill cells based on coordinates

    Try this simple code:
    Please Login or Register  to view this content.

  8. #8
    Registered User
    Join Date
    01-23-2017
    Location
    Lebanon
    MS-Off Ver
    2010
    Posts
    9

    Re: Fill cells based on coordinates

    This works like a charm.

    Thanks a lot

  9. #9
    Valued Forum Contributor
    Join Date
    11-28-2015
    Location
    indo
    MS-Off Ver
    2016 64 bitt
    Posts
    1,272
    Quote Originally Posted by kasan View Post
    Try this simple code:
    Please Login or Register  to view this content.
    How if this code
    In this Sheet to sort by ctiteria in rows .if value meet (=) with rows (this variabel makro)

+ 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. conditional formatting fill cells based on text, how to find sum based on CF colour
    By tubbybear in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 08-27-2016, 12:04 PM
  2. [SOLVED] Fill Cells based on Color of Other Cells in Two Columns
    By uberathlete in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 05-25-2016, 10:54 AM
  3. [SOLVED] How to fill color cells based on another cell's fill color?
    By putritersenyum in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 05-22-2016, 08:58 AM
  4. [SOLVED] Macro to auto fill in cells based on value on different cells
    By juskojj in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 01-11-2013, 01:35 PM
  5. Plot XY points in spreadsheet using paint bucket fill based on cell Coordinates
    By stretchballs in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 12-13-2012, 12:15 AM
  6. Convert point coordinates -> pixel coordinates
    By Zorro in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 05-31-2006, 10:30 PM
  7. Fill cells with color based on criteria in two cells
    By AA in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 01-02-2006, 07:35 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