+ Reply to Thread
Results 1 to 2 of 2

adding numbers from different fields to date

  1. #1
    Registered User
    Join Date
    02-26-2010
    Location
    Delhi, India
    MS-Off Ver
    Excel 2013
    Posts
    74

    adding numbers from different fields to date

    Hello
    i have a form with 4 text box. TB1 to TB4. TB1 and TB2 accept numbers and TB3 is the start date TB4 is end date i.e. TB1 + TB2 + TB3.
    i am not able add TB1 and TB2 it concatenating them i.e. if i enter 1 in TB1 and 1 in TB2 it should add 2 to TB3 but it is adding 11.

    Please Login or Register  to view this content.
    i even tried
    - ExtraDays = val(TB1 + TB2)
    - ExtraDays = CInt(TB1 + TB2)
    none of these work it adds 11 instead of 2

    i have posted this on https://www.mrexcel.com/forum/excel-...elds-date.html too.
    Last edited by JBeaucaire; 05-22-2017 at 10:56 AM. Reason: Added missing CODE tags, please read and follow the Forum Rules, link above in the menu bar. Thanks.

  2. #2
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: adding numbers from different fields to date

    Without all the extra plumbing, wouldn't it simply be:

    Please Login or Register  to view this content.
    _________________
    Microsoft MVP 2010 - Excel
    Visit: Jerry Beaucaire's Excel Files & Macros

    If you've been given good help, use the icon below to give reputation feedback, it is appreciated.
    Always put your code between code tags. [CODE] your code here [/CODE]

    ?None of us is as good as all of us? - Ray Kroc
    ?Actually, I *am* a rocket scientist.? - JB (little ones count!)

+ 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. Adding up a row of numbers until they are > than a cell and then return adjacent date
    By thunderbirdlindy in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 02-20-2014, 06:09 PM
  2. Adding fields in tables
    By malacqua in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 09-03-2013, 11:28 AM
  3. [SOLVED] Adding Week Numbers with date Functions
    By huston1679 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 04-17-2009, 11:16 PM
  4. Adding Date and Time fields
    By HBF in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 11-24-2008, 02:26 PM
  5. Changing numbes in text fields into numbers in number fields
    By freaksareus in forum Excel General
    Replies: 4
    Last Post: 10-23-2008, 05:47 AM
  6. [SOLVED] Excel SHOULD NOT AUTO-CHANGE formated text fields to DATE FIELDS!
    By PSSSD in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 08-08-2006, 04:35 PM
  7. Adding Date/Time fields
    By teastman in forum Excel - New Users/Basics
    Replies: 6
    Last Post: 01-01-2006, 01:15 AM
  8. [SOLVED] adding cells after stripping numbers out of text fields
    By Alan in forum Excel General
    Replies: 1
    Last Post: 08-24-2005, 04:05 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