+ Reply to Thread
Results 1 to 8 of 8

reporting values using IF function; nested arrays

  1. #1
    Registered User
    Join Date
    01-28-2011
    Location
    usa
    MS-Off Ver
    Excel 2003
    Posts
    12

    reporting values using IF function; nested arrays

    Hey everybody,
    Can smbd help me to figure out this formula:
    I need excel to report any value <$C$2 from column C as "YES".

    So far I've tried this formula:

    IF (C$4:C$8<$C$2,"YES","") except this formular works only for the frist line.

    I also need to use nested arrays as I want to be able to sort this column later without data loss.
    Attached Files Attached Files
    Last edited by rippa; 02-15-2011 at 11:40 PM.

  2. #2
    Forum Expert
    Join Date
    12-23-2006
    Location
    germany
    MS-Off Ver
    XL2003 / 2007 / 2010
    Posts
    6,326

    Re: reporting values using IF function; nested arrays

    Try =IF (C4<$C$2,"YES","") and pull down as necessary

  3. #3
    Registered User
    Join Date
    07-01-2010
    Location
    High Wycombe
    MS-Off Ver
    Excel 2003
    Posts
    95

    Re: reporting values using IF function; nested arrays

    Quote Originally Posted by rippa View Post
    Hey everybody,
    Can smbd help me to figure out this formula:
    I need excel to report any value <$C$2 from column C as "YES".

    So far I've tried this formula:

    IF (C$4:C$8<$C$2,"YES","") except this formular works only for the frist line.

    I also need to use nested arrays as I want to be able to sort this column later without data loss.
    The reason this doesnt work is because you are typing it into the one cell. If you drag Arthurbr it will not work either due to the constants.

    The formula you need is as follows;

    IF(C4<$C$2","YES","")

    Then if you drag this formula down it will change the cell to check but not the cell you wish to check it against.

    Hope this Helps.

  4. #4
    Forum Guru DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Northumberland, UK
    MS-Off Ver
    O365
    Posts
    21,531

    Re: reporting values using IF function; nested arrays

    Quote Originally Posted by Jamesr571
    If you drag Arthurbr it will not work either due to the constants.
    @Jamesr571, your formula would appear to be identical to that suggested by arthurbr's - are we missing something ?

    edit:

    FWIW, the OP's formula

    Please Login or Register  to view this content.
    should work without issue if applied to D4:D8 - pasted anywhere other than D4:D8 it would not.

    In D4:D8 XL will use C4:C8 as appropriate (ie D4 uses C4, D5 uses C5 etc...)
    Last edited by DonkeyOte; 02-14-2011 at 06:15 AM.

  5. #5
    Registered User
    Join Date
    01-28-2011
    Location
    usa
    MS-Off Ver
    Excel 2003
    Posts
    12

    Re: reporting values using IF function; nested arrays

    Wow guys, thanks a lot!
    as usually, I complicated everything too much

  6. #6
    Registered User
    Join Date
    07-01-2010
    Location
    High Wycombe
    MS-Off Ver
    Excel 2003
    Posts
    95

    Re: reporting values using IF function; nested arrays

    Yes there is a difference.

    instead of C$4$ use C4 that way when you drag down it will use column C.

    using C$4$ would mean when you drag down it will always use only C4 to compare it too. Using C4 it will then become C5, C6, etc, as you drag it down so there is a difference.

  7. #7
    Forum Guru DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Northumberland, UK
    MS-Off Ver
    O365
    Posts
    21,531

    Re: reporting values using IF function; nested arrays

    Quote Originally Posted by Jamesr571
    Yes there is a difference.
    Quote Originally Posted by arthurbr
    =IF (C4<$C$2,"YES","")
    Quote Originally Posted by Jamesr571
    IF(C4<$C$2","YES","")
    I suspect one of us needs to visit the opticians - though I agree that technically yours does differ slightly - the quotation after $C$2 would obviously cause issues.

    To reiterate though, OP's formula would work if it was being applied to D4:D8 as implied

    edit: attached sample to illustrate above
    Attached Files Attached Files
    Last edited by DonkeyOte; 02-16-2011 at 05:50 AM.

  8. #8
    Registered User
    Join Date
    07-01-2010
    Location
    High Wycombe
    MS-Off Ver
    Excel 2003
    Posts
    95

    Re: reporting values using IF function; nested arrays

    very sorry I copied and pasted the wrong formula I had on my sheet. All i was trying to say is the reference of using $.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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