+ Reply to Thread
Results 1 to 6 of 6

Help, am I missing a bracket?

  1. #1
    Registered User
    Join Date
    10-05-2018
    Location
    England
    MS-Off Ver
    2010
    Posts
    42

    Help, am I missing a bracket?

    Hi,

    =SUM(OFFSET(ADDRESS(6,MATCH($B$3,'Master Budget'!$3:$3,0)),MATCH(AF$5&$A11&$B11,'Master Budget'!$F$6:$F$64,0)-1,0,0,MONTH($B$3)-1))

    This formula keeps coming up with one of those box errors so I am most likely missing a bracket or something.

    I seem to have narrowed it down to the "ADDRESS" section.

    If I take the Address portion out and just put in a random reference like B6, it works. But I cann't for the life of me figure out what I am missing from the Address function, I seem to already have all the necessary brackets.

    Can someone please take a look?

    Thanks

  2. #2
    Forum Expert
    Join Date
    10-10-2016
    Location
    Sheffield
    MS-Off Ver
    365 and rarely 2016
    Posts
    3,210

    Re: Help, am I missing a bracket?

    A common mistake offset(cell,rows, cols, height, width) If you have a height, you have to have a width and visa versa
    =SUM(OFFSET(ADDRESS(6,MATCH($B$3,'Master Budget'!$3:$3,0)),MATCH(AF$5&$A11&$B11,'Master Budget'!$F$6:$F$64,0)-1,0,0,MONTH($B$3)-1))


    you are missing a height?, perhaps 1? I've done it many times myself

  3. #3
    Registered User
    Join Date
    10-05-2018
    Location
    England
    MS-Off Ver
    2010
    Posts
    42

    Re: Help, am I missing a bracket?

    Hi davesth,

    I do have the width there, it is the last criteria.

    I have jsut figured out what the issue is. The "Address" function returns a cell reference but in TEXT format. I therefore have the convert it into a reference by using Indirect function.

    So the formula now works, but it is giving me an #na, so at least that's better, jut need to figure what's wrong with the formula now :P

    Thanks,

  4. #4
    Forum Expert
    Join Date
    10-10-2016
    Location
    Sheffield
    MS-Off Ver
    365 and rarely 2016
    Posts
    3,210

    Re: Help, am I missing a bracket?

    You do have a width, but to have a width you have to have a height. Purely as an example

    sum( b2:g2) could be sum(offset(b2,0,0,1,6)) not sum(offset(b2,0,0,0,6)) as the range of data has no height


    Offset of a single cell defaults to a height and width both of 1, but if you use one of them to define a range, you also need to define the other
    https://www.excel-easy.com/examples/...med-range.html

    see the range has a height and a width of 1, you are the opposite way arround
    Last edited by davsth; 01-18-2021 at 09:05 AM.

  5. #5
    Registered User
    Join Date
    10-05-2018
    Location
    England
    MS-Off Ver
    2010
    Posts
    42

    Re: Help, am I missing a bracket?

    Ah yes of course! That was a rookie error, thank you!

  6. #6
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,626

    Re: Help, am I missing a bracket?

    If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED.
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

+ 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. [SOLVED] Missing Open Bracket during export. Require formula to add in
    By mc2468 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 07-22-2014, 08:51 PM
  2. Replies: 2
    Last Post: 07-18-2014, 03:00 AM
  3. basketball bracket help
    By brayboyce in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 03-22-2013, 08:56 PM
  4. Bracket or Tournament Help
    By rogeru in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 04-08-2011, 02:11 PM
  5. Remove String Within the Bracket and also the Bracket
    By seanyeap in forum Excel General
    Replies: 6
    Last Post: 04-23-2010, 10:24 AM
  6. bracket text
    By kasuthar in forum Excel General
    Replies: 5
    Last Post: 12-26-2009, 08:21 AM
  7. Replies: 3
    Last Post: 11-26-2009, 03:39 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