Is it a table, a lookup, ? range always changing

scott2020

New Member
Joined
Feb 27, 2020
Messages
3
Office Version
  1. 2013
Platform
  1. Windows
I download a .csv daily In the columns the following headers, Meter, serial num, value, uom, day, wk#, timestamp, and a few more rows of usless info.
the meter name changes, the serial num, and the value changes. I added the columns for day, and week# in to make it easier I though. I use the timestamp and regular formulas to fill in the data based on the timestamp.
This give day of week and week number i.e. 1 to 52 for the year. Then I parse all the data to their own tabs based on the name. All in vba.
What I can't wrap my head around is I may have 25 rows with a week 1 value, and what I would like to do. is, based on the week number, take the value in the value column C, find the min/max of those rows. Subtract the difference, ignoring repeated values. This will have to happen with an output to a cell every week. So the wk# number of course is going to change. Any ideas?
1582846433309.png
 

Excel Facts

Format cells as currency
Select range and press Ctrl+Shift+4 to format cells as currency. (Shift 4 is the $ sign).
I download a .csv daily In the columns the following headers, Meter, serial num, value, uom, day, wk#, timestamp, and a few more rows of usless info.
the meter name changes, the serial num, and the value changes. I added the columns for day, and week# in to make it easier I though. I use the timestamp and regular formulas to fill in the data based on the timestamp.
This give day of week and week number i.e. 1 to 52 for the year. Then I parse all the data to their own tabs based on the name. All in vba.
What I can't wrap my head around is I may have 25 rows with a week 1 value, and what I would like to do. is, based on the week number, take the value in the value column C, find the min/max of those rows. Subtract the difference, ignoring repeated values. This will have to happen with an output to a cell every week. So the wk# number of course is going to change. Any ideas?
View attachment 7787
never mind, i fixed it myself. i was using max(if, and changed to maxifs, and added more to the criteria, the rest was easy
 
Upvote 0

Forum statistics

Threads
1,224,816
Messages
6,181,139
Members
453,021
Latest member
Justyna P

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