+ Reply to Thread
Results 1 to 12 of 12

SOLVED*****Beginer questions: creating a formula in an existing table

  1. #1
    Registered User
    Join Date
    02-10-2014
    Location
    TEXAS, USA
    MS-Off Ver
    Excel 2013
    Posts
    6

    SOLVED*****Beginer questions: creating a formula in an existing table

    ******SOLVED*******

    I apologize if this is the wrong place to ask this question.

    I have an existing table, that I am trying to create a formula in.

    There are 2 columns, "Hire Date", and "Time in Service".

    I would like to make a formula that will automatically calculate & update the "time in service" column, based on the date in the "hire date" column.

    Can anyone help with this?

    I've tried following online guides, but I guess I'm not as computer savvy as I thought I was.




    Thank you for your time,

    HM
    Last edited by HarveyMushman; 02-10-2014 at 02:46 AM. Reason: SOLVED

  2. #2
    Registered User
    Join Date
    02-10-2014
    Location
    TEXAS, USA
    MS-Off Ver
    Excel 2013
    Posts
    6

    Re: Beginer questions: creating a formula in an existing table

    I should add that I have very little experience with excel, so I'm not really sure where or how to enter the formula. I guess I'll need help with that as well.


    Thank you,

    HM

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

    Re: Beginer questions: creating a formula in an existing table

    Attach a sample workbook. Make sure there is just enough data to make it clear what is needed. Include a BEFORE sheet and an AFTER sheet in the workbook if needed to show the process you're trying to complete or automate. Make sure your desired results are demonstrated, mock them up manually if needed. Remember to desensitize the data.

    Click on GO ADVANCED and use the paperclip icon to open the upload window.

    View Pic
    Quang PT

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

    Re: Beginer questions: creating a formula in an existing table

    Hi and welcome to the forum

    If you want to base the "Time in service" off todays date and the Hire Date", then lets say your dates start in A2 downwards, in B2, copied down enter...
    =TODAY()-A2

    You may need to format the answer to suite your needs (like general?)
    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
    Registered User
    Join Date
    02-10-2014
    Location
    TEXAS, USA
    MS-Off Ver
    Excel 2013
    Posts
    6

    Re: Beginer questions: creating a formula in an existing table

    I hope this works

    EXCEL HELP.jpg

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

    Re: Beginer questions: creating a formula in an existing table

    Maybe :
    =DATEDIF(E3,TODAY(),"Y") &" years, " &DATEDIF(E3,TODAY(),"YM") &" months, " &DATEDIF(E3,TODAY(),"MD") &" days"

  7. #7
    Registered User
    Join Date
    02-10-2014
    Location
    TEXAS, USA
    MS-Off Ver
    Excel 2013
    Posts
    6

    Re: Beginer questions: creating a formula in an existing table

    You rock!!!!


    Thank you so much!!!

  8. #8
    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,938

    Re: Beginer questions: creating a formula in an existing table

    Please do not upload a picture of your file...rather, upload a sample of your workbook, showing what data you are working with, a few samples of your expected outcome is (manually entered is ok) and how you arrived at that. (exclude sensitive info). Pictures are pretty much impossible to edit, and no-one wants to re-type your data for you Also, not all members can upload picture files (Company firewalls and stuff)

    Having said that...
    =IF(DATEDIF(E2,TODAY(),"y")=0,"",DATEDIF(E2,TODAY(),"y")&" years ")&IF(DATEDIF(E2,TODAY(),"ym")=0,"",DATEDIF(E2,TODAY(),"ym")&" months ")&DATEDIF(E2,TODAY(),"md")&" days"

    If you have a lot of these to calc, I suggest you put the TODAY() in its own cell, and then reference it. For instance, if you put =TODAY() in E1, then the formula becomes...
    =IF(DATEDIF(E2,E1,"y")=0,"",DATEDIF(E2,E1,"y")&" years ")&IF(DATEDIF(E2,E1,"ym")=0,"",DATEDIF(E2,E1,"ym")&" months ")&DATEDIF(E2,E1,"md")&" days"

    If you use a different cell, then adjust the reference as needed

  9. #9
    Registered User
    Join Date
    02-10-2014
    Location
    TEXAS, USA
    MS-Off Ver
    Excel 2013
    Posts
    6

    Re: Beginer questions: creating a formula in an existing table

    Ah ok. Sorry. The formula that bebo gave works perfectly.

  10. #10
    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,938

    Re: Beginer questions: creating a formula in an existing table

    No problem. His formula is the same as my 1st 1, except that I added to test for duration less than a year. Also, as I mentioned, if you have a lot of these to do (100's), then using that many TODAY()'s may tend to slow things down, so it may be better to put that in its own cell and then reference it. TODAY() is what's called a volatile function, meaning that, unlike most functions, TODAY() updates every time anything is done to the workbook...every time you hit enter, for instance.

    Thanks for the feedback, too

  11. #11
    Registered User
    Join Date
    02-10-2014
    Location
    TEXAS, USA
    MS-Off Ver
    Excel 2013
    Posts
    6

    Re: SOLVED*****Beginer questions: creating a formula in an existing table

    Luckily I only have 30 to do.


    Thanks again,

    HM

  12. #12
    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,938

    Re: SOLVED*****Beginer questions: creating a formula in an existing table

    Happy to help.

    To mark your question SOLVED, use the thread tools towards the top of the page (I will do it for you this time)

+ 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 to design and remodel an existing excel file with formulas for a beginer
    By Jack ArmStrong in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 01-11-2013, 04:57 PM
  2. Help with creating table from existing data
    By chamblee in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 05-19-2011, 05:01 PM
  3. Creating pivot table to Existing worksheet
    By Malvaro in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 08-29-2008, 09:30 AM
  4. adding data with formula to existing table in ms access
    By nataliem in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 09-25-2007, 03:46 AM
  5. VBA for Beginer - Help required from all
    By vikesh in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 02-24-2005, 07:30 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