• Hi All

    Please note that at the Chandoo.org Forums there is Zero Tolerance to Spam

    Post Spam and you Will Be Deleted as a User

    Hui...

  • When starting a new post, to receive a quicker and more targeted answer, Please include a sample file in the initial post.

Auto sum formula next to particular text

arif

Member
i have data sheet

then i want to add sum of total data in the next cell of the cell where written "Subtotal"

is there any way to that using excel formula

data sheet is attached here
 

Attachments

B4: =IF(A4="Subtotal",SUM($B$3:B3),"")
Copy down
Then enter data in the cells above
problem is if you shift Subtotal Up it wont work as the formula will be gone

If you still want a subtotal under those conditions that would require VBA

Pls advise
 
Hi Arif,

See this file, the file will work like this, where ever on Sheet1 you will enter Subtotal next cell with get the addition of all numbers from 4th row of the next column to last row with number.

See if this meet your requirement.

Regards,
 

Attachments

Back
Top