ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Auto Sum formula - how to write in Macro (https://www.excelbanter.com/excel-programming/314627-auto-sum-formula-how-write-macro.html)

s_u_resh[_3_]

Auto Sum formula - how to write in Macro
 

Hi,

i want to know how to use the sum formula for the following example.



B

5
6
3
12
---
26 TOTAL
---
6
7
8
1
2
---
24 TOTAL
---

=26+24 ' TOTAL USING ALT + = SIGN or Auto Sum

( when i use the ALT + = SIGN or Auto Sum i get the total of abov
sum formulas)


How do i write in macro?

I do not want to make total and devide by 2.

Please help .

Thanks
S.Sures

--
s_u_res
-----------------------------------------------------------------------
s_u_resh's Profile: http://www.excelforum.com/member.php...fo&userid=1567
View this thread: http://www.excelforum.com/showthread.php?threadid=27211


Don Guillett[_4_]

Auto Sum formula - how to write in Macro
 
one thing
=SUMIF(C:C,"total",B:B)
or
x=application.SUMIF(C:C,"total",B:B)
msgbox x
--
Don Guillett
SalesAid Software

"s_u_resh" wrote in message
...

Hi,

i want to know how to use the sum formula for the following example.



B

5
6
3
12
---
26 TOTAL
---
6
7
8
1
2
---
24 TOTAL
---

=26+24 ' TOTAL USING ALT + = SIGN or Auto Sum

( when i use the ALT + = SIGN or Auto Sum i get the total of above
sum formulas)


How do i write in macro?

I do not want to make total and devide by 2.

Please help .

Thanks
S.Suresh


--
s_u_resh
------------------------------------------------------------------------
s_u_resh's Profile:

http://www.excelforum.com/member.php...o&userid=15670
View this thread: http://www.excelforum.com/showthread...hreadid=272116





All times are GMT +1. The time now is 10:28 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com