+ Reply to Thread
Results 1 to 11 of 11

creat a row in a spredsheet when a certain value is entered in a row in another spreadshee

  1. #1
    Registered User
    Join Date
    05-04-2016
    Location
    Monterrey, Mexico
    MS-Off Ver
    2013 plus
    Posts
    5

    Question creat a row in a spredsheet when a certain value is entered in a row in another spreadshee

    Hi guys,

    I'm new to the forum and most of the times i am able to find the formula I need to investigate, but in this case, no proper result are popping up in google. I don't think i am using the correct vocuabulary.

    so here is my dilema:

    I have made a spreadsheet to mark attendance, punches, tardies etc.
    I have a tab for each month and in every month 2 tables for each 15 day period (in mexico they pay by forthnignt)

    Now i have for each day and person th epossibility to choose form a list if it is OK (on time), EXT (excused tardy) UXT (unexcused tardy) ....

    My hope, is to be able to, whenever i choose ext for instance, automatically create a line in another spreadsheet/tab in a table where automatically the name, date and duration of the tardy would populate.

    I created a short table in the tab i named automatic table and this is where i would like the info to be populated.

    I am attaching the thing, obviously.

    I do apologise if it is not the right place to post.

    Thanks in advance for your help.

    Alex
    Attached Files Attached Files

  2. #2
    Forum Expert
    Join Date
    08-16-2015
    Location
    Antwerpen, Belgium
    MS-Off Ver
    2007-2016
    Posts
    2,380

    Re: creat a row in a spredsheet when a certain value is entered in a row in another spread

    With something like this

    Please Login or Register  to view this content.
    Kind regards
    Leo
    Attached Files Attached Files

  3. #3
    Registered User
    Join Date
    05-04-2016
    Location
    Monterrey, Mexico
    MS-Off Ver
    2013 plus
    Posts
    5

    Re: creat a row in a spredsheet when a certain value is entered in a row in another spread

    Hi, thank you very much for your help. It seems very complicated, I thought maybe it would be something easier. I don't really understand the code above and I don't find it in my workbook. Could you tel me where to find it please ?

  4. #4
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,933

    Re: creat a row in a spredsheet when a certain value is entered in a row in another spread

    In case Leo does not see this for a while...

    That is VBA (coding), not a formula, you wont "see" it in your sheets, it runs in the background.

    I think this would be far simpler if you had all data on 1 sheet, instead of a sheet per month, it would make any summaries a LOT easier to do and manage.
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  5. #5
    Forum Expert
    Join Date
    08-16-2015
    Location
    Antwerpen, Belgium
    MS-Off Ver
    2007-2016
    Posts
    2,380

    Re: creat a row in a spredsheet when a certain value is entered in a row in another spread

    It is not in any workbook, you have to copy and paste it

    open VB Editor (Alt F11) and right click on ThisWorkBook

    Kind regards
    Leo

  6. #6
    Registered User
    Join Date
    05-04-2016
    Location
    Monterrey, Mexico
    MS-Off Ver
    2013 plus
    Posts
    5

    Re: creat a row in a spredsheet when a certain value is entered in a row in another spread

    thanks you guys


    so you would recomment to just put all my table one below the other ? it's not really an issue, that I can do The only thing is I am starting to notice that I'm playing beyond my league here. VBA sounds scary lol. I guess, if I manage to understand how it works for one event (EXT) then i could make work for the other events.

  7. #7
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,933

    Re: creat a row in a spredsheet when a certain value is entered in a row in another spread

    excel works best (easiest) with all data on 1 sheet - not to say it cannot work across sheets, but then it just becomes a bit more complex.

    It looks like you have already put quite a bit of effort into that, but I would suggest turning your table the other way round, so the dates go down and the names across the top. Either way, you can then start using many of the built-in excel functions like sumifS() and pivot tables

  8. #8
    Registered User
    Join Date
    05-04-2016
    Location
    Monterrey, Mexico
    MS-Off Ver
    2013 plus
    Posts
    5

    Re: creat a row in a spredsheet when a certain value is entered in a row in another spread

    I understand what you're saying, Nevertheless, I would hae to re do everything, so I think I'm onna stick with it that way.
    Neverthe less, could you briefly explain what the code refers too ? I mean what part refers to what exactly, so I can work out how to adapti to my need? :P

    I know it's maybe too much to ask.

    Just let me know

    Thanks

  9. #9
    Forum Expert
    Join Date
    08-16-2015
    Location
    Antwerpen, Belgium
    MS-Off Ver
    2007-2016
    Posts
    2,380

    Re: creat a row in a spredsheet when a certain value is entered in a row in another spread

    to busy now, but something for tomorrow

    Kind regards
    Leo

  10. #10
    Registered User
    Join Date
    05-04-2016
    Location
    Monterrey, Mexico
    MS-Off Ver
    2013 plus
    Posts
    5

    Re: creat a row in a spredsheet when a certain value is entered in a row in another spread

    you rock ! thanks man

  11. #11
    Forum Expert
    Join Date
    08-16-2015
    Location
    Antwerpen, Belgium
    MS-Off Ver
    2007-2016
    Posts
    2,380

    Re: creat a row in a spredsheet when a certain value is entered in a row in another spread

    Some explication in code

    Alt F11
    DubbleClick on ThisWorkBook


    Kind regards
    Leo
    Attached Files Attached Files

+ 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. Save Button on Spredsheet
    By shah_ravindra in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 01-06-2014, 06:51 AM
  2. Macro (with button) and formula help on Accounting spredsheet
    By AK262007 in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 01-12-2010, 10:52 AM
  3. Inventory Spredsheet help
    By Adam,P. in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 09-29-2008, 03:42 AM
  4. [SOLVED] if I already have a Spredsheet, but I wanna add more,How?
    By SPREADSHEETS in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 05-04-2006, 12:30 PM
  5. [SOLVED] How to transfer a sum from one spredsheet to another
    By Therese in forum Excel General
    Replies: 2
    Last Post: 12-21-2005, 05:20 PM
  6. [SOLVED] how do I open a works spredsheet in excel?
    By grillfish in forum Excel General
    Replies: 1
    Last Post: 11-02-2005, 06:17 PM
  7. [SOLVED] I need a work in progress spredsheet
    By Luanne in forum Excel General
    Replies: 2
    Last Post: 08-19-2005, 03:05 PM
  8. [SOLVED] Extracting part of a spredsheet based on the date
    By Keith in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 05-09-2005, 11:06 AM

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