+ Reply to Thread
Results 1 to 5 of 5

increment cell with a value

  1. #1
    Registered User
    Join Date
    05-07-2013
    Location
    Philippines
    MS-Off Ver
    Excel 2003, Excel 2007
    Posts
    3

    increment cell with a value

    Hi everyone,

    I just joined the forums and it's my first time posting here. I found this forum with a great help in solving my problems with excel. I might as well ask for help.

    Here's my situation. In column D8-D12, I have the years of service of my employees (the base values of D8-D12 are 8,6,12,40,25). My base date is the current date which is in A3.

    What I want to do is base on the current date (In A3, I format it "yyyy" so that it would only show the year),
    I want to increment the values D8-D12 by 1 when the year increases (ex. 2013 then next year 2014 and so on..) basing on A3.

    Another is in column F8-F12 is the amount they will receive for the years of their service. I would like the column of F8-F12 to add 50 if the values of D8-D12 reach the multiples of 10.

    I hope I had provided my problem clearly. Any help would be greatly appreciated. Thanks in advance.

  2. #2
    Forum Moderator vlady's Avatar
    Join Date
    09-22-2011
    Location
    Philippines - OLSHCO -Guimba-Nueva Ecija
    MS-Off Ver
    2021
    Posts
    4,361

    Re: increment cell with a value

    there are functions like

    =DATEDIF(datestartofservice,A3,"y")

    or
    =DATEDIF(datestartofservice,A3,"y")&" yrs "&DATEDIF(datestartofservice,A3,"ym")&" months"


    this will auto increment based on the value in A3

    If you have the Analysis ToolPak (tools, add-ins) there is the"NETWORKDAYS" function, this do not include the weekends or holidays in the count,used by HR personnel.
    I think people forget the word "THANK YOU!!!!" Do you still know it???

    There is a little star ( ADD REPUTATION ) below those person who helped you. Click it to say your "PRIVATE APPRECIATION TO THEIR EFFORT ON THEIR CONTRIBUTIONS "

    Regards,
    Vladimir

  3. #3
    Registered User
    Join Date
    05-07-2013
    Location
    Philippines
    MS-Off Ver
    Excel 2003, Excel 2007
    Posts
    3

    Re: increment cell with a value

    Thanks vlady!

    I'm not that good in excel, so whatever new things I've encountered at work, I browse different forums to find the solution.

    Regarding my 2nd question => "Another is in column F8-F12 is the amount they will receive for the years of their service. I would like the column of F8-F12 to add 50 if the values of D8-D12 reach the multiples of 10."

    Was that possible? or does it need to be solve using VBA? I'm not good at VBA though

  4. #4
    Forum Moderator vlady's Avatar
    Join Date
    09-22-2011
    Location
    Philippines - OLSHCO -Guimba-Nueva Ecija
    MS-Off Ver
    2021
    Posts
    4,361

    Re: increment cell with a value

    so we have to check the value in F8 first if it is a multiple of 10?

    if we will use another column for this one.

    say in column G8 down

    =IF(or(D8="",D8=0),"",IF(MOD(D8,10)=0,TRUE,FALSE)) -> check number in D8
    now we put the increment of 50 "inside" the if formula replacing the True/False argument

    =IF(or(D8="",D8=0),"",IF(MOD(D8,10)=0,F8 + 50, F8)) -> previous true/false

  5. #5
    Registered User
    Join Date
    05-07-2013
    Location
    Philippines
    MS-Off Ver
    Excel 2003, Excel 2007
    Posts
    3

    Re: increment cell with a value

    Thanks vlady for the help. It worked.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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