My goal is for a macro to automatically select the range of cells below Door Size and Qty in this formula.
=SUM(E2:E5)+SUMPRODUCT((LEFT(D2:D5,1)="(")*(E2:E5))
Where E2:E5 represents the full range of numbers below "Qty" and D2:D5 represents the full range of numbers below "Door Size".
The order of columns and number of rows is subject to change so the macro should automatically find "Door Size" and "Qty", select the range of numbers below, and apply these ranges to the above formula. The purpose of the formula is to double the quantity of doors at pairs, where the door size starts with a "(".
I have a similar macro that finds "Door Size" and highlights the entire column, but I need the macro to only select the range underneath "Door Size" and stop once it hits a blank. And then do the same thing for "Qty" and insert those ranges into the formula above.
Here's the macro to highlight the door size column.
Any help would be greatly appreciated!Please Login or Register to view this content.
Bookmarks