+ Reply to Thread
Results 1 to 7 of 7

Request help 4 IF/DATE FORMULA

  1. #1
    Registered User
    Join Date
    12-04-2016
    Location
    DUBAI
    MS-Off Ver
    2013
    Posts
    2

    Question Request help 4 IF/DATE FORMULA

    =IF(B2="T1*", E2+365 days, E2+395 days)
    Last edited by makmanoj; 12-04-2016 at 08:56 AM.

  2. #2
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2406 (Windows 11 23H2 64-bit)
    Posts
    81,763

    Re: Request help

    Welcome to the forum! Please take a moment to re-read forum rule #1 and then amend your thread title to something that better explains your problem. Changing your thread title is not optional. Thanks!
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

  3. #3
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2406 (Windows 11 23H2 64-bit)
    Posts
    81,763

    Re: Request help 4 IF/DATE FORMULA

    Thanks for changing the thread title.

  4. #4
    Forum Contributor
    Join Date
    08-25-2014
    Location
    Pennsylvania, US
    MS-Off Ver
    Windows '16
    Posts
    165

    Re: Request help 4 IF/DATE FORMULA

    Hope you enjoyed your warm welcome to the forums, makmanoj. If I recall mine wasn't much better.

    Anyways, if you are adding days (not weekdays) and E2 is a date, then =IF(B2="T1*", E2+365, E2+395) will work. (Are you trying to do something special with the asterisk? A wildcard?)

  5. #5
    Forum Guru
    Join Date
    02-27-2016
    Location
    Vietnam
    MS-Off Ver
    2021
    Posts
    5,960

    Re: Request help 4 IF/DATE FORMULA

    Like this?

    =IF(RIGHT(B2,2)="T1", E2+365 days, E2+395 days)

  6. #6
    Forum Contributor
    Join Date
    08-25-2014
    Location
    Pennsylvania, US
    MS-Off Ver
    Windows '16
    Posts
    165

    Re: Request help 4 IF/DATE FORMULA

    Phuocam, I think you mean to use LEFT. Also, get rid of "days."

  7. #7
    Forum Guru
    Join Date
    02-27-2016
    Location
    Vietnam
    MS-Off Ver
    2021
    Posts
    5,960

    Re: Request help 4 IF/DATE FORMULA

    Quote Originally Posted by JYTS View Post
    Phuocam, I think you mean to use LEFT. Also, get rid of "days."
    Yes! LEFT function:

    =E2+IF(LEFT(B2,2)="T1",365, 395)
    Last edited by Phuocam; 12-05-2016 at 01:50 AM.

+ 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. Wait for winhttp request to be done (much like XML http request)
    By JasperD in forum Excel Programming / VBA / Macros
    Replies: 21
    Last Post: 07-23-2015, 09:26 AM
  2. VBA Help Request
    By Beckye in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 03-18-2014, 07:39 PM
  3. Sql.request
    By egoncalves in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 06-26-2007, 09:05 AM
  4. sql.request
    By teepee in forum Excel General
    Replies: 2
    Last Post: 12-30-2005, 09:35 AM
  5. [SOLVED] sql.request
    By teepee in forum Excel General
    Replies: 2
    Last Post: 12-30-2005, 09:35 AM
  6. [SOLVED] sql.request
    By teepee in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 12-30-2005, 09:35 AM
  7. Request help
    By Shetty in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 11-17-2005, 06:40 AM

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