+ Reply to Thread
Results 1 to 4 of 4

nested AND and IF statements

  1. #1
    Registered User
    Join Date
    08-14-2009
    Location
    Lincoln, England
    MS-Off Ver
    MS Office 2019 Professional Plus
    Posts
    60

    nested AND and IF statements

    Hi All,

    You won't have any problem with this, but I can't get the syntax correct.

    If try to write a formula that looks at column J to see if there is a Yes, and if there is, looks at column I. If the value in column I is 10, it should return 56. If the value in column I is 12, it should return 65. If column J shows No instead of Yes, it should return 0 regardless of column I.

    I always struggle with nested stuff, any help as always greatly appreciated.

    Thanks,

    Dom

  2. #2
    Forum Guru Jonmo1's Avatar
    Join Date
    03-08-2013
    Location
    Bryan, TX
    MS-Off Ver
    Excel 2010
    Posts
    9,763

    Re: nested AND and IF statements

    Is it only the 2 possible values for column I (10 or 12) ?
    Or will that expand out to several possible values? How Many?

    If it's really just the 2, try

    =IF(J2="Yes",IF(I2=10,56,IF(I2=12,65,"")),0)

  3. #3
    Registered User
    Join Date
    08-14-2009
    Location
    Lincoln, England
    MS-Off Ver
    MS Office 2019 Professional Plus
    Posts
    60

    Re: nested AND and IF statements

    That's perfect thanks. Just the 2 possible values in that cell.

    Thanks again

  4. #4
    Forum Guru Jonmo1's Avatar
    Join Date
    03-08-2013
    Location
    Bryan, TX
    MS-Off Ver
    Excel 2010
    Posts
    9,763

    Re: nested AND and IF statements

    You're welcome.

+ 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. [SOLVED] Nested if statements containing multiple and statements
    By John M. in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 06-22-2014, 11:48 PM
  2. questions with if statements and nested if statements
    By Pat Excel in forum Excel Formulas & Functions
    Replies: 13
    Last Post: 02-03-2013, 01:41 PM
  3. Multiple nested IF statements and AND statements
    By TonyGetz in forum Excel General
    Replies: 2
    Last Post: 12-14-2010, 03:07 AM
  4. Nested If statements / logic statements
    By Brainless_09 in forum Excel General
    Replies: 3
    Last Post: 06-17-2009, 02:59 PM
  5. Replies: 12
    Last Post: 05-15-2009, 08:38 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