+ Reply to Thread
Results 1 to 2 of 2

If statement plus

  1. #1
    Forum Contributor
    Join Date
    09-21-2014
    Location
    USA
    MS-Off Ver
    2010
    Posts
    449

    If statement plus

    Hello All,

    Please see attached.

    In column C, I need a formula that looks at column A and does the following:
    • If column A is wood, it adds 15 work days to the date in column B and puts the result in column C
    • If column A is steel, it adds 30 work days to the date in column B and puts the result in column C
    • If column A is wood, it adds 20 work days to the date in column B and puts the result in column C

    Thanks
    Attached Files Attached Files

  2. #2
    Banned User!
    Join Date
    02-05-2015
    Location
    San Escobar
    MS-Off Ver
    any on PC except 365
    Posts
    12,168

    Re: If statement plus

    Quote Originally Posted by morerockin View Post
    • If column A is wood, it adds 15 work days to the date in column B and puts the result in column C
    • If column A is steel, it adds 30 work days to the date in column B and puts the result in column C
    • If column A is wood, it adds 20 work days to the date in column B and puts the result in column C
    which one is correct?

    anyway you can try =CHOOSE(MATCH(A2,{"wood","steel","plastic"},0),B2+15,B2+30,B2+20) and format as date
    or
    =CHOOSE(MATCH(A2,{"wood","steel","plastic"},0),WORKDAY.INTL(B2,15),WORKDAY.INTL(B2,30),WORKDAY.INTL(B2,20))
    Last edited by sandy666; 06-23-2018 at 07:38 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. Replies: 2
    Last Post: 07-09-2015, 04:25 PM
  2. [SOLVED] If statement to select data - nested statement - assistance
    By petitesouris in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 06-29-2015, 09:55 PM
  3. compile error expected line number statement end statement
    By mattress58 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 04-18-2014, 10:12 AM
  4. VBA Compile Error : line number or label or statement or end of statement
    By excellearner121 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 06-04-2013, 06:41 PM
  5. Replies: 4
    Last Post: 06-01-2012, 10:05 AM
  6. Replies: 4
    Last Post: 05-16-2012, 05:33 PM
  7. [SOLVED] Utilize a Select Case Statement in Target Intersect Statement
    By max57 in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 07-29-2009, 08:55 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