+ Reply to Thread
Results 1 to 5 of 5

Curly Brackets in formula view

  1. #1
    Registered User
    Join Date
    11-21-2011
    Location
    Virginia Beach, VA
    MS-Off Ver
    Excel 2007
    Posts
    11

    Curly Brackets in formula view

    Hello,

    Below are to formulas checking for the instances of certain text prior to todays date. The top formula works (returns the correct number), the bottom formula does not (returns 0 (zero)). I have made a number of alterations but can not find the reason why it is not working:

    WORKS:

    =COUNT(1/FREQUENCY(IF($I$12:$I$20015<TODAY(),IF(ISNUMBER(MATCH(D12:D20015,{"Norfolk","Mayport"},0)),MATCH(D12:D20015&H12:H20015&I12:I20015,D12:D20015&H12:H20015&I12:I20015,0))),ROW(D12:D20015)-ROW(D12)+1))

    DOES NOT WORK:

    =COUNT(1/FREQUENCY(IF($I$12:$I$20015<TODAY(),IF(ISNUMBER(MATCH(D12:D20015,{"EUCOM","CENTCOM"},0)),MATCH(D12:D20015&H12:H20015&I12:I20015,D12:D20015&H12:H20015&I12:I20015,0))),ROW(D12:D20015)-ROW(D12)+1))

    Please note that when viewing in the formula bar the working formula shows { } surrounding the in entire formula (opening prior to the =) and in the non-working it does not. I tried adding those but it just shows the formula as text. Appreciate any assistance.
    Last edited by VBSK8R; 06-04-2012 at 09:26 AM. Reason: bad title

  2. #2
    Registered User
    Join Date
    11-21-2011
    Location
    Virginia Beach, VA
    MS-Off Ver
    Excel 2007
    Posts
    11

    Re: Unable to determine why formula not working

    Jeff,

    Sorry, been awhile, Title changed. Not sure if accurately captured the problem though?

    Matt

  3. #3
    Forum Expert Cutter's Avatar
    Join Date
    05-24-2004
    Location
    Ontario,Canada
    MS-Off Ver
    Excel 2010
    Posts
    6,451

    Re: Curly Brackets in formula view

    The curly brackets that enclose the entire formula are put there by Excel when the formula is confirmed with Ctrl+Shift+Enter instead of the usual Enter alone.
    That is called an array formula.
    Typing the curly brackets yourself, as you have seen, doesn't do it.

  4. #4
    Registered User
    Join Date
    11-21-2011
    Location
    Virginia Beach, VA
    MS-Off Ver
    Excel 2007
    Posts
    11

    Re: Curly Brackets in formula view

    That did it! Thank You!!

  5. #5
    Forum Expert Cutter's Avatar
    Join Date
    05-24-2004
    Location
    Ontario,Canada
    MS-Off Ver
    Excel 2010
    Posts
    6,451

    Re: Curly Brackets in formula view

    You're welcome.

+ 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