Sum of values in each row under specific header name

MrsALT

New Member
Joined
May 23, 2023
Messages
1
Office Version
  1. 365
Platform
  1. Windows
Hi! I'm new to VBA and couldn't find previous threads that help me with my problem.

I need to get the sum of values in each row under a specific set of header names, which are invoice aging days:

61-90 days (column 9)
91-120 days (column 10)
121-180 days (column 11)
181-270 days (column 12)
271-360 days (column 13)
More than 360 days (column 14)

The problem is one or two may be missing from the list above at some point because the list changes daily, so the column placement also changes (example, column 14 becomes column 12 if no invoices aged 181-360 days).

WIll greatly appreciate your help!
 

Excel Facts

Highlight Duplicates
Home, Conditional Formatting, Highlight Cells, Duplicate records, OK to add pink formatting to any duplicates in selected range.
If you are using a date range, you will probably need SUMIFS (which allow multiple conditions/criteria) instead of SUMIF (which only allows a single condition).
See: Sum if date is between
 
Upvote 0

Forum statistics

Threads
1,213,501
Messages
6,114,010
Members
448,543
Latest member
MartinLarkin

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
Back
Top