Conditional Formatting using VBA - Inserting columns on criteria

B-radK

Board Regular
Joined
Apr 1, 2010
Messages
91
Office Version
  1. 365
Platform
  1. Windows
Hello team,

I have a worksheet where I need to identify rows with the word "Concession" in column K and then highlight that row. I know I can do this with Conditional Formatting, however, I thought a macro I can use as a button on a tab I have created would be a more efficient step in my calculation process.

After that run has been completed, I would like my sheet to find the end of each month, and insert a new column. In Row 2, I have all the days of the year spread out from 01-Jan-20 to 31-Dec-20 in individual columns.

In the newly created columns at the end of month, I would like the rows identified as a "Concession" to be summed, then those sums totalled at the top of the column in Row 1.

Does this make sense? I have attached an image to show what I would like the macro to do. Please note column AQ is the newly inserted column at the end of the month between January 31 and February 1st.

Macro.jpg


Thanks very much,
Brad.
 

Excel Facts

Easy bullets in Excel
If you have a numeric keypad, press Alt+7 on numeric keypad to type a bullet in Excel.

Watch MrExcel Video

Forum statistics

Threads
1,132,785
Messages
5,655,286
Members
418,185
Latest member
snoogz2

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Top