Hi Manoj,

I think we can not do it through formula only we can do it easly through 
VBA. So below is the small code that we generate the same formula as you 
want. 
But it has some limitation eg. your sheets name should be continues like 
[1,2,3.....] except the sheet name Report.

   Dim rngCells    As Range
    With ThisWorkbook.Worksheets("Report")
        For Each rngCells In 
Intersect(.Range("A1").CurrentRegion.Columns(2), 
.Range("A1").CurrentRegion.Columns(2).Offset(1))
           rngCells.Formula = "=sum('1:" & ThisWorkbook.Sheets.Count - 1 & 
"'!" & Left(rngCells.Address, 4) & ")"
        Next
    End With

Regards
Prince Dubey.

On Wednesday, November 7, 2012 12:54:00 PM UTC+5:30, Manoj Kumar wrote:
>
> Dear Expert, 
>
> Please help me ...when I add new sheet ("3") it should be change like 
> that.."SUM('1:3'!B2)"
>
> Regard
> Manoj
>

-- 
Join official facebook page of this forum @ 
https://www.facebook.com/discussexcel

FORUM RULES (1120+ members already BANNED for violation)

1) Use concise, accurate thread titles. Poor thread titles, like Please Help, 
Urgent, Need Help, Formula Problem, Code Problem, and Need Advice will not get 
quick attention or may not be answered.

2) Don't post a question in the thread of another member.

3) Don't post questions regarding breaking or bypassing any security measure.

4) Acknowledge the responses you receive, good or bad.

5)  Cross-promotion of, or links to, forums competitive to this forum in 
signatures are prohibited. 

6) Jobs posting is not allowed.

7) Sharing copyrighted ebooks/pirated ebooks/their links is not allowed.

NOTE  : Don't ever post personal or confidential data in a workbook. Forum 
owners and members are not responsible for any loss.
--- 
You received this message because you are subscribed to the Google Groups "MS 
EXCEL AND VBA MACROS" group.
To post to this group, send email to excel-macros@googlegroups.com.
To unsubscribe from this group, send email to 
excel-macros+unsubscr...@googlegroups.com.
Visit this group at http://groups.google.com/group/excel-macros?hl=en.


Reply via email to