Store cells, and and recall them later based on drop down

%3CLINGO-SUB%20id%3D%22lingo-sub-2024457%22%20slang%3D%22en-US%22%3EStore%20cells%2C%20and%20and%20recall%20them%20later%20based%20on%20drop%20down%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2024457%22%20slang%3D%22en-US%22%3E%3CP%3EOkay%2C%20So%20I%20know%20this%20has%20been%20discussed%20before%2C%20but%20maybe%20I'm%20not%20phrasing%20it%20correctly.%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20want%20to%20store%20cells%20based%20on%20date%20values%2C%20and%20when%20I%20change%20the%20month%20I%20want%20new%20dates%20to%20populate%20and%20the%20cell%20values%20from%20the%20previous%20month%20to%20be%20stored%20somewhere%20so%20when%20I%20recall%20that%20month%20I%20get%20those%20values.%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI've%20attached%20a%20sample%20workbook.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-2024457%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EDeveloper%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EExcel%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EExcel%20on%20Mac%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EFormulas%20and%20Functions%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EMacros%20and%20VBA%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2024712%22%20slang%3D%22en-US%22%3ERe%3A%20Store%20cells%2C%20and%20and%20recall%20them%20later%20based%20on%20drop%20down%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2024712%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F909118%22%20target%3D%22_blank%22%3E%40StevenRayNDT%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EWhere%20do%20those%20pieces%20of%20information%20come%20from%3F%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EYour%20sample%20workbook%20shows%20the%20%3CU%3E%3CSTRONG%3Eoutput%3C%2FSTRONG%3E%3C%2FU%3E%20you%20want%2C%20but%20nothing%20to%20generate%20that%20from%3B%20do%20you%20have%20a%20file%20of%20raw%20data%20to%20be%20summarized%3F%20%3CEM%3EThe%20manner%20in%20which%20you%20collect%20that%20raw%20data%20is%20part%20of%20what's%20needed%20to%20determine%20the%20way%20to%20create%20this%20output.%3C%2FEM%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EIt's%20highly%20unlikely%20that%20you'll%20need%20a%20macro%20or%20VBA%20routine.%20Something%20like%20this%20can%20be%20easily%20accomplished%20using%20one%20of%20several%20Excel%20functions%2C%20but%20as%20noted%20above%20without%20input%20there%20can%20be%20no%20output.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20could%20generate%20a%20sample%20but%20I'd%20be%20guessing%20at%20your%20full%20situation%2C%20so%20it%20seems%20to%20me%20to%20make%20more%20sense%20to%20ask%20you%20what%20the%20%22bigger%20picture%22%20is%20here......%3C%2FP%3E%3CUL%3E%3CLI%3EIt's%20clear%20that%20you're%20expecting%20some%20kind%20of%26nbsp%3B%20weekly%20summary%2C%20but%20are%20those%20figures%20(which%20are%20identical%20for%20each%20week%20in%20your%20sample--is%20that%20realistic%3F!)%20entered%20somewhere%20as%20final%20weekly%20numbers%2C%20or%20are%20those%20the%20sum%20(or%20average%2C%20or....)%20of%20more%20detailed%20numbers%20for%20each%20week%3F%3C%2FLI%3E%3CLI%3EIs%20the%20raw%20data%20collected%20on%20a%20daily%20basis%3F%20Or%20some%20other%20frequency%3F%3C%2FLI%3E%3C%2FUL%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3BI%20don't%20think%20it's%20going%20to%20be%20difficult%2C%20but%20the%20more%26nbsp%3B%20you%20can%20provide%20by%20way%20of%20background%2C%20the%20more%20I%20or%20somebody%20else%20can%20give%20you%20a%20practical%20recommendation.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2024979%22%20slang%3D%22en-US%22%3ERe%3A%20Store%20cells%2C%20and%20and%20recall%20them%20later%20based%20on%20drop%20down%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2024979%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F425987%22%20target%3D%22_blank%22%3E%40mathetes%3C%2FA%3EThank%20you%20for%20your%20Response%20!%20The%20excel%20I%20uploaded%20was%20just%20an%20example%20for%20an%20issue%20I've%20had%20a%20few%20times.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20uploaded%20a%20more%20put%20together%20example%20for%20you%2C%20but%20basically%2C%20Its%20just%20a%20personal%20budget%20where%20I%20would%20track%20income%2C%20expenses%2C%20etc.%20The%20example%20data%20provided%20in%20the%20first%20excel%2C%20yes%2C%20was%20identical%2C%20but%20again%2C%20this%20is%20for%20future%20income%2C%20so%20any%20values%20would%20be%20erroneous.%26nbsp%3BThe%20actually%20numbers%20would%20be%20input%20on%20a%20weekly%20basis%2C%20but%20I%20would%20like%20to%20be%20able%20to%20reference%20past%20dates%20as%20well.%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3ELet%20me%20know%20what%20you%20think%2C%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E
New Contributor

Okay, So I know this has been discussed before, but maybe I'm not phrasing it correctly. 

 

I want to store cells based on date values, and when I change the month I want new dates to populate and the cell values from the previous month to be stored somewhere so when I recall that month I get those values. 

 

I've attached a sample workbook.

6 Replies

@StevenRayNDT 

 

Where do those pieces of information come from?

 

Your sample workbook shows the output you want, but nothing to generate that from; do you have a file of raw data to be summarized? The manner in which you collect that raw data is part of what's needed to determine the way to create this output.

 

It's highly unlikely that you'll need a macro or VBA routine. Something like this can be easily accomplished using one of several Excel functions, but as noted above without input there can be no output.

 

I could generate a sample but I'd be guessing at your full situation, so it seems to me to make more sense to ask you what the "bigger picture" is here......

  • It's clear that you're expecting some kind of  weekly summary, but are those figures (which are identical for each week in your sample--is that realistic?!) entered somewhere as final weekly numbers, or are those the sum (or average, or....) of more detailed numbers for each week?
  • Is the raw data collected on a daily basis? Or some other frequency?

 

 I don't think it's going to be difficult, but the more  you can provide by way of background, the more I or somebody else can give you a practical recommendation.

@mathetesThank you for your Response ! The excel I uploaded was just an example for an issue I've had a few times.

 

I uploaded a more put together example for you, but basically, Its just a personal budget where I would track income, expenses, etc. The example data provided in the first excel, yes, was identical, but again, this is for future income, so any values would be erroneous. The actually numbers would be input on a weekly basis, but I would like to be able to reference past dates as well. 

 

Let me know what you think, 

 

 

 

 

@StevenRayNDT 

 

So it looks to me as if you may be thinking about this--if you'll excuse the expression, which I'll explain below--it looks as if you may be thinking about this backwards.

 

I've attached an example of how a Pivot Table can be used to summarize data. In this case, it's only summarizing expenses. I use an approach something like this for tracking income and expenses that my wife and I experience over the years. And the important point--where I think you're approaching it backwards--is that the screen that shows monthly (in your case, weekly) data-- is the OUTPUT end of things.

 

The raw data is actually transaction by transaction, day by day. In the case of our personal income and expense tracker, I import the raw data from our bank and from each credit card company. It's very specific data, in other words, down to the individual deposits, the individual purchases. This can be used--and the Pivot Table method of Excel offers a lot of flexibility--to create summaries that can display:

  • weekly (or monthly) income and expense totals
  • weekly (or monthly) income and expense figures by budget category

 

Needless to say, it can also do annual comparisons, and so on.

 

But the key is to think of that tabular display as Output, and the raw data as the Input. You appear to be wanting to do the data entry into your "Income Sheet" and your "Source Data" isn't really what I'd categorize as source data....it's just a way of looking at the calendar. Excel can do that automatically, break down a date, recognizing what month it's in, what week, what day of the week. Familiarize yourself with the many Date functions and you'll see. True source data would be detailed raw data on income and expenses.

 

By the way, Microsoft has made available a template -- Money in Excel -- that can connect with your bank and credit card companies and do a lot of what you're trying to do on your own. It doesn't work for me--my bank uses dual-factor authentication and MiE doesn't work with that--but might be worth checking out. https://templates.office.com/en-us/money-in-excel-tm77948210

 

In the meantime, take a look at the example I've attached. As I said, it right now is just an example of how the Pivot Table does what I call the "heavy lifting" of summarizing very detailed data.

 

Thanks, im going to figure out a better way to summarize what i'm saying, because its not getting across. Thanks for the effort. 

@StevenRayNDT 

 

No. It's getting across. I'm suggesting that you're approaching it the wrong way. You will be much better served for a budget tracking to enter your data into a table and use Pivot Table to see the numbers corresponding to any given month.

@StevenRayNDT 

 

Here's an example of what Pivot Table can do if you enter your data (with fictitious extensions into following months) as a single table. Once the monthly (or weekly, or daily) data have been entered this way, the Pivot Table--usually placed on a separate sheet, but here I did it next to the raw data to show the relationship--can summarize any month. Try changing the month displayed at the just above the tabular display. It immediately shifts.

 

Here's a resource on Pivot Tables that can help you learn it. It's one of the most popular and powerful features of Excel.https://exceljet.net/glossary/pivot-table