+ Reply to Thread
Results 1 to 5 of 5

Need help with complicated IF

  1. #1
    Registered User
    Join Date
    05-17-2010
    Location
    New York, USA
    MS-Off Ver
    Excel 2010
    Posts
    44

    Need help with complicated IF

    I need to insert a formula in G19.

    I need G19 to be ZERO if either F4 or F5 have value of N. Otherwise, G19 should have the SUM of G4, G5, G11 and G15.
    F4 and F5 may have values or Y or N. All G's contain Dollar values.

    I have tried this, but it does not work:
    =IF((F4=N,OR,F5=N),0,(SUM(G4,G5,G11,G15)))

    What am I doing wrong?

  2. #2
    Forum Expert tim201110's Avatar
    Join Date
    10-23-2011
    Location
    Russia
    MS-Off Ver
    2016, 2019
    Posts
    2,357

    Re: Need help with complicated IF

    =IF(countif(F4:F5,N)>0,,SUM(G4,G5,G11,G15))

  3. #3
    Forum Expert etaf's Avatar
    Join Date
    10-22-2004
    Location
    Wittering, West Sussex, UK
    MS-Off Ver
    365 (Mac OSX) (16.83 (24031120))
    Posts
    8,729

    Re: Need help with complicated IF

    =IF ( OR ( F4 = "N", F5 = "N" ) , 0, G4+G5+G11+G15 )

    when you say $ values, i assume numbers formatted as $ nd not text with $ in the cell
    Wayne
    if my assistance has helped, and only if you wish to , there is an "* Add Reputation" on the left hand side - you can add to my reputation here

    If you have a solution to your thread - Please mark your thread solved do the following: >
    Select Thread Tools-> Mark thread as Solved. To undo, select Thread Tools-> Mark thread as Unsolved.

  4. #4
    Registered User
    Join Date
    05-17-2010
    Location
    New York, USA
    MS-Off Ver
    Excel 2010
    Posts
    44

    Re: Need help with complicated IF

    This works. Thank you Wayne.
    Last edited by vicstone; 02-24-2020 at 02:02 PM. Reason: Name

  5. #5
    Registered User
    Join Date
    05-17-2010
    Location
    New York, USA
    MS-Off Ver
    Excel 2010
    Posts
    44

    Re: Need help with complicated IF

    Quote Originally Posted by tim201110 View Post
    =IF(countif(F4:F5,N)>0,,SUM(G4,G5,G11,G15))
    This works only is both F4 and F5 are N

+ 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. Its complicated....
    By JacksonC in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 09-24-2015, 06:33 PM
  2. Complicated Sum
    By vikshrasss in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 10-15-2013, 02:48 PM
  3. [SOLVED] Complicated Look UP
    By Excel Dumbo in forum Excel Formulas & Functions
    Replies: 12
    Last Post: 09-03-2013, 09:39 PM
  4. Complicated If/Then
    By Fcroft in forum Excel General
    Replies: 4
    Last Post: 08-13-2010, 03:06 PM
  5. complicated SUM
    By dz6kb4 in forum Excel General
    Replies: 3
    Last Post: 12-07-2008, 10:38 AM
  6. This is more complicated than it looks.
    By dollarbill79 in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 07-13-2006, 06:35 PM
  7. [SOLVED] Something perhaps a little complicated
    By brodiemac in forum Excel General
    Replies: 1
    Last Post: 06-13-2006, 10:15 AM

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