+ Reply to Thread
Results 1 to 4 of 4

Multiple Functions to one or more cells

  1. #1
    Registered User
    Join Date
    10-21-2011
    Location
    Texas
    MS-Off Ver
    Excel 2003
    Posts
    4

    Multiple Functions to one or more cells

    Hi, I really need the right formula to add. I have tried several and continue to receive an error. I am able to get =IF(ISNUMBER(a1);WORKDAY(a1;43);"") with no issue but when I add further info to it, ie another IF statement I receive an error. Here is what I am trying to accomplish.

    A1 = Referral Date
    B1 = Transfer Date
    C1 = Referral Due Date
    D1 = Transfer Due Date

    If A1 is entered then C1 will calculate the due date, via the formula above, B1 and D1 = blank
    If A1 & B1 both have dates then D1 should calculate 30 days out and C1 = blank

    Also, not really sure if I need to place both if statements in C1 or does it have to be broken into two cells. Please help! Thanks. Sorry haven't worked with excel formulas in too many years.

  2. #2
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,422

    Re: Multiple Functions to one or more cells

    You could have:

    C1: =IF(AND(A1<>"";B1<>"");"";IF(ISNUMBER(A1);WORKDAY(A1;43);""))

    However, there is a problem with the statement.

    If A1 is entered then C1 will calculate the due date, via the formula above, B1 and D1 = blank
    A cell either has a value or a formula. If yo want to type a date into cell B1, it can't have a formua which will make it blank depending on the value in another cell.

    You could probably do that with a VBA Worksheet Change Event monitoring columns A and B ... do you want a VBA solution?

    Regards
    Trevor Shuttleworth - Retired Excel/VBA Consultant

    I dream of a better world where chickens can cross the road without having their motives questioned

    'Being unapologetic means never having to say you're sorry' John Cooper Clarke


  3. #3
    Registered User
    Join Date
    10-21-2011
    Location
    Texas
    MS-Off Ver
    Excel 2003
    Posts
    4

    Re: Multiple Functions to one or more cells

    Actually, the formula you provided worked perfect. Thanks!

  4. #4
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,422

    Re: Multiple Functions to one or more cells

    Oh, OK.

    If this has answered your question, please mark your thread as solved. See my signature for details or the FAQ.

    Regards

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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