Back-filling data in a query?

TomRenish

Board Regular
Joined
Aug 18, 2009
Messages
90
Hi there,

I'm trying to generate a file that helps me figure out how many widgets were in the field as a function of days since deployment. Here's an example:

[Days since shipment] [Running Total]

1 / 234
2 / 230
3 / 220
4
5
6 / 210

Nothing shipped 4 days ago or 5 days ago, for example. But the number of widgets in the field for days 4 and 5 will be identical to 6, so I need a way to push "210" into those particular records. There are hundreds of records like this and the units shipped "x" days ago will will increment with each passing day.

I mucked around with DFirst, DMin, etc., but I couldn't ever get it to work correctly.
 

Excel Facts

How to change case of text in Excel?
Use =UPPER() for upper case, =LOWER() for lower case, and =PROPER() for proper case. PROPER won't capitalize second c in Mccartney

Forum statistics

Threads
1,224,574
Messages
6,179,634
Members
452,934
Latest member
Jdsonne31

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