Consulting

Results 1 to 4 of 4

Thread: Question on Formula

  1. #1
    VBAX Regular
    Joined
    Mar 2013
    Posts
    45
    Location

    Question on Formula

    How would i modify the following code to used a cell that Has the number 3 for the month of March vs Today()
    [vba]
    =SUM((MONTH($C24:$C30)=MONTH(TODAY()))*D24:I30)
    [/vba]

  2. #2
    Moderator VBAX Sage SamT's Avatar
    Joined
    Oct 2006
    Location
    Near Columbia
    Posts
    7,814
    Location
    [VBA]=SUM((MONTH($C24:$C30)=MONTH(3))*D24:I30)[/VBA]

  3. #3
    VBAX Regular
    Joined
    Mar 2013
    Posts
    45
    Location
    Ok that worked perfectly...but heres another can of worms...

    If i was to delete B22:J32 and Shift Cells up the Formula above cleares out and puts #REF How can i keep the Formula intacted?? basically dont touch AD22:AR22 Keep them intacted??/

  4. #4
    Moderator VBAX Sage SamT's Avatar
    Joined
    Oct 2006
    Location
    Near Columbia
    Posts
    7,814
    Location
    [VBA]=SUM((MONTH(Indirect($C24:$C30))=MONTH(3))*Indirect(D24:I30))[/VBA]

Posting Permissions

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