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

Pivot Table Drill Down
Double-click any number in a pivot table to create a new report showing all detail rows that make up that number
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,223,885
Messages
6,175,186
Members
452,615
Latest member
bogeys2birdies

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