Consulting

Results 1 to 5 of 5

Thread: help with excell formula

  1. #1
    VBAX Newbie
    Joined
    Feb 2008
    Posts
    3
    Location

    help with excell formula

    hi would like to know if what I am trying is possable here is my senario

    I have a group of 5 colums in each month every colum has a amount in ? and I have 12 months now I also have a colum with the total of all the months together "M3", but now I have created check boxes for each month. What I want to do if possable is when the month is checked i want the total of the 5 colums added together and subtracted from the yearly total "M3" and if i tick a second month I want that also subtrackted from the yearly total "M3" but I want every thin displayd in one colum here is my formula so far "=IF(DI1=TRUE,SUM(DE3I3)-M3,0) -IF(DD1=TRUE,SUM(CZ3I3)-M3,0)" it doesnt work when the values of my colums is 0 is this at all possable and does this make sence.
    Thanks for any help

  2. #2
    Distinguished Lord of VBAX VBAX Grand Master Bob Phillips's Avatar
    Joined
    Apr 2005
    Posts
    25,453
    Location
    Throw us a bone to work on, an example workbook.
    ____________________________________________
    Nihil simul inventum est et perfectum

    Abusus non tollit usum

    Last night I dreamed of a small consolation enjoyed only by the blind: Nobody knows the trouble I've not seen!
    James Thurber

  3. #3
    VBAX Newbie
    Joined
    Feb 2008
    Posts
    3
    Location

    here is an example work sheet

    Hope this help thank you
    Last edited by charlb; 02-20-2008 at 07:39 AM. Reason: forgot to atach the file

  4. #4
    Distinguished Lord of VBAX VBAX Grand Master Bob Phillips's Avatar
    Joined
    Apr 2005
    Posts
    25,453
    Location
    Does this formula in DJ3 do what you want

    =ROUND(SUM(IF((MOD(COLUMN($X$1:$DI$1),5)=3)*($X$1:$DI$1=FALSE),$X3:$DE3+$Y3 :$DF3+$Z3:$DG3+$AA3:$DH3+$AB3:$DI3)),2)

    which is an array formula, it should be committed with Ctrl-Shift-Enter, not just Enter.Excel will automatically enclose the formula in braces (curly brackets), do not try to do this manually.

    When editing the formula, it must again be array-entered.

    Note that you cannot use a whole column in array formulae (prior to excel 2007), but must use an explicit range.
    ____________________________________________
    Nihil simul inventum est et perfectum

    Abusus non tollit usum

    Last night I dreamed of a small consolation enjoyed only by the blind: Nobody knows the trouble I've not seen!
    James Thurber

  5. #5
    VBAX Newbie
    Joined
    Feb 2008
    Posts
    3
    Location

    thank for your help

    Hi thanks i got it working you were very helpfull have a good day.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •