+ Reply to Thread
Results 1 to 4 of 4

Nesting IF/AND's

Hybrid View

amphinomos Nesting IF/AND's 02-18-2014, 11:00 AM
Richard Buttrey Re: Nesting IF/AND's 02-18-2014, 11:03 AM
Olly Re: Nesting IF/AND's 02-18-2014, 11:04 AM
amphinomos Re: Nesting IF/AND's 02-18-2014, 11:06 AM
  1. #1
    Forum Contributor
    Join Date
    05-30-2013
    Location
    France
    MS-Off Ver
    2010
    Posts
    260

    Nesting IF/AND's

    Hi,

    I've got this formula working :

    =IF(AND(R2="ORANGE",AD2="APPLE"),AD2,CONCATENATE(R2,S2,T2,U2,V2,W2,X2,Y2,Z2,AA2,AB2,AC2,AD2))

    and I'd like to nest another IF/AND but I can't quite figure out what I'm doing wrong:

    =IF(IF(AND(R2="ORANGE",AD2="APPLE"),AD2,AND(V2="BANANA",X2="CHERRY"),V2,CONCATENATE(R2,S2,T2,U2,V2,W2,X2,Y2,Z2,AA2,AB2,AC2,AD2)))

    Any help would be great!

    Thanks
    amphinomos

  2. #2
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: Nesting IF/AND's

    Maybe

    Formula: copy to clipboard
    =IF(AND(R2="ORANGE",AD2="APPLE"),AD2,IF(AND(V2="BANANA",X2="CHERRY"),V2,CONCATENATE(R2,S2,T2,U2,V2,W2,X2,Y2,Z2,AA2,AB2,AC2,AD2)))
    Richard Buttrey

    RIP - d. 06/10/2022

    If any of the responses have helped then please consider rating them by clicking the small star icon below the post.

  3. #3
    Forum Expert Olly's Avatar
    Join Date
    09-10-2013
    Location
    Darlington, UK
    MS-Off Ver
    Excel 2016, 2019, 365
    Posts
    6,284

    Re: Nesting IF/AND's

    Try:
    Formula: copy to clipboard
    =IF(AND(R2="ORANGE",AD2="APPLE"),AD2,IF(AND(V2="BANANA",X2="CHERRY"),V2,CONCATENATE(R2,S2,T2,U2,V2,W2,X2,Y2,Z2,AA2,AB2,AC2,AD2)))
    let Source = #table({"Question","Thread", "User"},{{"Answered","Mark Solved", "Add Reputation"}}) in Source

    If I give you Power Query (Get & Transform Data) code, and you don't know what to do with it, then CLICK HERE

    Walking the tightrope between genius and eejit...

  4. #4
    Forum Contributor
    Join Date
    05-30-2013
    Location
    France
    MS-Off Ver
    2010
    Posts
    260

    Re: Nesting IF/AND's

    So obvious it hurts...thanks guys

+ 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] too much nesting
    By sansan_ooi in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 07-17-2013, 03:37 AM
  2. nesting 3D
    By fredpox in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 05-12-2010, 04:40 PM
  3. Nesting more than 7 ifs...another way?
    By Blade2304 in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 03-04-2007, 11:17 AM
  4. IF - Nesting... almost got it - need a bit of help
    By AngelaG in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 04:05 PM
  5. IF - Nesting... almost got it - need a bit of help
    By Bill Kuunders in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 09-06-2005, 06:05 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