+ Reply to Thread
Results 1 to 4 of 4

If statement that only returns #value, however it works in another spreadsheet but has {}

  1. #1
    Registered User
    Join Date
    08-01-2012
    Location
    Halifax
    MS-Off Ver
    Excel 2003
    Posts
    1

    If statement that only returns #value, however it works in another spreadsheet but has {}

    So I am working on a spreadsheet with a sum with several if statements. In the original spreadsheet it works just fine. I copy the formula to a new spreadsheet and it will only return #value. In the original spreadsheet the formula has{=formula}. If the {} are removed then it also returns #value. If you undo that and the {} returns it works just fine. I have no idea why the {} is there or what it means.

    I have also tried the sumif statement, but I have several if statements requried to return the value i am looking to sum. Any assistance would be apprciated.

    Thanks,
    Mike

  2. #2
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    48,047

    Re: If statement that only returns #value, however it works in another spreadsheet but has

    If it has curly brackets, it is an array formula and has to be committed with Ctrl-Shift-Enter rather than just Enter.

    Regards, TMS
    Trevor Shuttleworth - Retired Excel/VBA Consultant

    I dream of a better world where chickens can cross the road without having their motives questioned

    'Being unapologetic means never having to say you're sorry' John Cooper Clarke


  3. #3
    Valued Forum Contributor
    Join Date
    05-08-2012
    Location
    Georgia, USA
    MS-Off Ver
    Excel 2003, 2010
    Posts
    811

    Re: If statement that only returns #value, however it works in another spreadsheet but has

    That signifys that the formula is an ARRAY

    The formula must be entered using CTRL SHIFT ENTER instead of ENTER

    You don't enter the { }, Excel enters them for you when you press CTRL SHIFT ENTER

    Kirk

    Change the title to [SOLVED] and click on the star at the end of this message for feedback
    Click on star (*) below if this helps

  4. #4
    Forum Expert Ace_XL's Avatar
    Join Date
    06-04-2012
    Location
    UAE
    MS-Off Ver
    2016
    Posts
    6,074

    Re: If statement that only returns #value, however it works in another spreadsheet but has

    the {} represent an array formula that are confirmed with Ctrl+Shift+Enter and not just Enter

    Hence the anomaly. Some reading on array formula below..

    www.cpearson.com/excel/array.htm
    Life's a spreadsheet, Excel!
    Say thanks, Click *

+ 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