ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   Macro to insert a formula based on a range (https://www.excelbanter.com/excel-discussion-misc-queries/121898-macro-insert-formula-based-range.html)

MarcusA

Macro to insert a formula based on a range
 
I need a macro that will ask for the range of data to perform a task when
executed. The macro will then read column 'A' for any value greater than "0"
and insert a 'sumif' function in column 'B'. The macro will continue until
it reaches the end of the data range.

Nick Hodge

Macro to insert a formula based on a range
 
Marcus

What is the SUMIF function going to conditionally sum?

I think you may need to make the question a little clearer

--
HTH
Nick Hodge
Microsoft MVP - Excel
Southampton, England
DTHIS
www.nickhodge.co.uk


"MarcusA" wrote in message
...
I need a macro that will ask for the range of data to perform a task when
executed. The macro will then read column 'A' for any value greater than
"0"
and insert a 'sumif' function in column 'B'. The macro will continue
until
it reaches the end of the data range.




All times are GMT +1. The time now is 08:36 PM.

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