+ Reply to Thread
Results 1 to 13 of 13

Wondering how to get { } around a formula

  1. #1
    Registered User
    Join Date
    06-25-2015
    Location
    Vancouver, Canada
    MS-Off Ver
    2010
    Posts
    19

    Wondering how to get { } around a formula

    I am working on a sheet and trying to remove the blanks from a list of recipes so only the selected recipes show up on a drop down box.

    White 1

    WW 2
    Grain 1
    Grain 2

    White 2

    I have a suggested formula for doing that =IFERROR(INDEX(I$2:I$81,SMALL(IF(I$2:I$81<>"",ROW(I$2:I$81)-ROW(I$2)+1),ROWS(H$2:H3))),"") that works well on the sheet that I am copying it from. But the thing is that is has { } on either side of it. Once I click on the forumla bar these disapear, and it doesn't work correctly anymore. The two questions that I have is what are these? and how can I use them?

  2. #2
    Forum Guru
    Join Date
    03-02-2006
    Location
    Los Angeles, Ca
    MS-Off Ver
    WinXP/MSO2007;Win10/MSO2016
    Posts
    12,612

    Re: Wondering how to get { } around a formula

    ...confirmed by pressing CTRL+SHIFT+ENTER to activate the array, not just ENTER. You will know the array is active when you see curly braces { } appear around your formula. If you do not CTRL+SHIFT+ENTER you will get an error or a clearly incorrect answer. Press F2 on that cell and try again.
    Ben Van Johnson

  3. #3
    Forum Guru AlKey's Avatar
    Join Date
    07-20-2009
    Location
    Lakeland, FL USA
    MS-Off Ver
    Microsoft Office 2010/ Office 365
    Posts
    8,903

    Re: Wondering how to get { } around a formula

    Alternatively you can use this formula that doesn't require Ctrl+Shift+Enter.

    Formula: copy to clipboard
    Please Login or Register  to view this content.
    If you like my answer please click on * Add Reputation
    Don't forget to mark threads as "Solved" if your problem has been resolved

    "Nothing is so firmly believed as what we least know."
    --Michel de Montaigne

  4. #4
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: Wondering how to get { } around a formula

    Quote Originally Posted by TheBakerBoy View Post
    =IFERROR(INDEX(I$2:I$81,SMALL(IF(I$2:I$81<>"",ROW(I$2:I$81)-ROW(I$2)+1),ROWS(H$2:H3))),"")
    That formula is an array formula.

    http://www.cpearson.com/Excel/ArrayFormulas.aspx

    Array formulas are entered differently than a regular formula. After you type in a regular formula you hit the ENTER key. With an array formula you must use a combination of keys. Those keys are the CTRL key, the SHIFT key and the ENTER key. That is, hold down both the CTRL key and the SHIFT key then hit the ENTER key.

    When done properly Excel will enclose the formula in squiggly brackets { }. You can't just type these brackets in, you must use the key combo to produce them. Also, anytime you edit an array formula it must be re-entered as an array using the key combo.

    This version is a few keystrokes shorter:

    =IFERROR(INDEX(I:I,SMALL(IF(I$2:I$81<>"",ROW(I$2:I$81)),ROWS(H$2:H2))),"")

    Still array entered!
    Biff
    Microsoft MVP Excel
    Keep It Simple Stupid

    Let's Go Pens. We Want The Cup.

  5. #5
    Registered User
    Join Date
    06-25-2015
    Location
    Vancouver, Canada
    MS-Off Ver
    2010
    Posts
    19

    Re: Wondering how to get { } around a formula

    Quote Originally Posted by AlKey View Post
    Alternatively you can use this formula that doesn't require Ctrl+Shift+Enter.

    Formula: copy to clipboard
    Please Login or Register  to view this content.
    This did work very well, but the sheet that I am building needs to also work in Excel 2003 and I know that the Iferror function doesn't work. I know that you can use the Iserror function but I am unsure of where to drop this in to the above forumla.

  6. #6
    Forum Guru AlKey's Avatar
    Join Date
    07-20-2009
    Location
    Lakeland, FL USA
    MS-Off Ver
    Microsoft Office 2010/ Office 365
    Posts
    8,903

    Re: Wondering how to get { } around a formula

    Are you retrieving numbers or text?

  7. #7
    Registered User
    Join Date
    06-25-2015
    Location
    Vancouver, Canada
    MS-Off Ver
    2010
    Posts
    19

    Re: Wondering how to get { } around a formula

    It will be text

  8. #8
    Forum Guru AlKey's Avatar
    Join Date
    07-20-2009
    Location
    Lakeland, FL USA
    MS-Off Ver
    Microsoft Office 2010/ Office 365
    Posts
    8,903

    Re: Wondering how to get { } around a formula

    Try this one

    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Last edited by AlKey; 12-04-2015 at 01:04 PM.

  9. #9
    Registered User
    Join Date
    06-25-2015
    Location
    Vancouver, Canada
    MS-Off Ver
    2010
    Posts
    19

    Re: Wondering how to get { } around a formula

    I placed the above forumla in the cell and it went blank, when the formula that you gave before worked and gave the the correct answer.

  10. #10
    Forum Guru AlKey's Avatar
    Join Date
    07-20-2009
    Location
    Lakeland, FL USA
    MS-Off Ver
    Microsoft Office 2010/ Office 365
    Posts
    8,903

    Re: Wondering how to get { } around a formula

    Quote Originally Posted by TheBakerBoy View Post
    I placed the above forumla in the cell and it went blank, when the formula that you gave before worked and gave the the correct answer.
    It works fine for me. Did you make any adjustments?

  11. #11
    Registered User
    Join Date
    06-25-2015
    Location
    Vancouver, Canada
    MS-Off Ver
    2010
    Posts
    19

    Re: Wondering how to get { } around a formula

    The only changes I made was to the cells that is referanced, as it fits on the sheet that i am working on. Here is what I changed.
    =LOOKUP("zzzz",CHOOSE({1,2},"",INDEX(I:I,SMALL(INDEX((B$2:B$119="")*10^10+ROW(B$2:B$119),0),ROWS(A$2:A2)))))

    As said, I placed the above formula in cell A2 and a blank cell showed up. Colum B is where the list of doughs are tabulated and were the blanks do appear. I am unsure how to post a copy of the sheet for you to look at, as that might help.

  12. #12
    Forum Guru AlKey's Avatar
    Join Date
    07-20-2009
    Location
    Lakeland, FL USA
    MS-Off Ver
    Microsoft Office 2010/ Office 365
    Posts
    8,903

    Re: Wondering how to get { } around a formula

    To upload a spreadsheet follow instructions below.

    Remember to desensitize the data.

    Click on GO ADVANCED and use the paperclip icon to open the upload window.

    View Pic

  13. #13
    Registered User
    Join Date
    06-25-2015
    Location
    Vancouver, Canada
    MS-Off Ver
    2010
    Posts
    19

    Re: Wondering how to get { } around a formula

    While I was desensitizing the data (on a new workbook) I plugged in your formula and it worked fine. I went back and place the same formula on the sheet that I am working on, it just turns up a blank. Any ideas?

+ 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. Replies: 4
    Last Post: 03-17-2015, 12:01 PM
  2. Replies: 5
    Last Post: 06-26-2013, 06:07 PM
  3. [SOLVED] Wondering if there is such a counting formula...
    By theo_c in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 03-29-2013, 08:18 PM
  4. Wondering how to leave a cell blank until i finish the formula...
    By grrr:) in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 02-05-2013, 07:56 PM
  5. Hello, wondering if I can do this
    By 00powderspecial in forum Excel - New Users/Basics
    Replies: 3
    Last Post: 12-03-2006, 03:22 PM
  6. Wondering if someone could help.
    By BarryT in forum Excel General
    Replies: 2
    Last Post: 05-15-2006, 08:19 AM
  7. Wondering if....
    By Akusuzaku in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 09-14-2005, 03:05 PM

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