+ Reply to Thread
Results 1 to 3 of 3

If Function, can I use two IFS in one Cell

  1. #1
    Registered User
    Join Date
    10-27-2013
    Location
    Apeldoorn
    MS-Off Ver
    Excel 2007
    Posts
    1

    If Function, can I use two IFS in one Cell

    Hi All,

    Can I use two IF's in one cell?

    Say I have A1 cell, and B2 Is +10 and B3 is 0

    I want A1 to show B2 if B2 is greater than 0.
    but if B3 is greater than 0 I want A1 to sho B3.

    In my work if B2 is greater than 0 B3 will be zero and Visa versa.

    Regards
    David

  2. #2
    Registered User
    Join Date
    04-22-2012
    Location
    Syracuse, NY, USA
    MS-Off Ver
    Office 365
    Posts
    61

    Re: If Function, can I use two IFS in one Cell

    OK, from what it looks like this could be solved by using a LARGE function instead. From the way you worded it only one of B2 and B3 will have a non-zero value and that will always be greater than 0. So this formula could very easily give you what you want in A1:
    [code]
    =LARGE(B2:B3,1)
    [code]


    As to the title question. Yes you can nest (appropriate technical term) IF functions inside each other. This would be another valid (if more complex) way to give you the intended result using IF formulas.

    [code]
    =IF(B2>0,B2,B3)
    [code]

    Again using what you provided that one will be zero and the other not, it boils down if one is zero use the other.

    I hope this helps.
    ~~RGrunden
    Reality is stranger than fiction.

  3. #3
    Forum Expert Pepe Le Mokko's Avatar
    Join Date
    05-14-2009
    Location
    Belgium
    MS-Off Ver
    O365 v 2402
    Posts
    13,453

    Re: If Function, can I use two IFS in one Cell

    FWIW you can nest 8 IF's in XL 2003 and 64 I think in post 2003 versions, although there would be more elegant solutions eventually.

    @Rgrunden Did you hit the "code" icon to highlight your formulas ? If so, better advise a mod or admin, that means something is wrong. The closing should be [\code]

+ 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. index function error using match function to get data from a cell in an array
    By mabildgaard in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 10-17-2013, 02:21 AM
  2. if cell is wrapped with IFERROR function, then delete the function from the cell
    By Shishek in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 12-20-2012, 07:21 PM
  3. Combine time cell and function cell with new function
    By murdoc158 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 08-17-2012, 09:37 AM
  4. Replies: 2
    Last Post: 03-20-2009, 01:29 PM
  5. [SOLVED] A correct IF function doesn't show the function's result in cell
    By Michael in forum Excel General
    Replies: 1
    Last Post: 04-10-2006, 04:15 AM

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