Date Ranges and Pulling Data

%3CLINGO-SUB%20id%3D%22lingo-sub-2337621%22%20slang%3D%22en-US%22%3EDate%20Ranges%20and%20Pulling%20Data%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2337621%22%20slang%3D%22en-US%22%3E%3CP%3EUsing%20Office%20365%20on%20an%20MS%20Surface%20device.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20am%20trying%20to%20create%20a%20spreadsheet%20where%20I%20can%20enter%20daily%20data%20for%20various%20items%20(sales%2C%20quantity%2C%20price%2C%20etc.).%26nbsp%3B%20This%20data%20is%20in%20a%20separate%20worksheet%20and%20is%20populated%20every%20day%20for%20the%20year.%26nbsp%3B%20So%2C%20I%20have%20a%20row%20with%20dates%20and%20underneath%2C%20rows%20with%20all%20the%20data%20I%20am%20tracking%20for%20each%20date%3A%3C%2FP%3E%3CP%3E%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3BJan%201%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20Jan%202%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20Jan%203%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3Betc...%3C%2FP%3E%3CP%3EQuantity%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20100%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20110%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B120%3C%2FP%3E%3CP%3EPrice%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%241%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%241%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%242%3C%2FP%3E%3CP%3ESales%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%24100%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%24110%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%24240%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20then%20have%20a%20separate%20worksheet%20where%20I%20create%20daily%2C%20weekly%2C%20monthly%2C%20quarterly%20reports.%26nbsp%3B%20What%20I%20want%20to%20be%20able%20to%20do%20is%20set%20a%20date%20range%20on%20the%20report%20worksheet%20(for%20example%2C%20Jan%201%20to%20Jan%203)%20and%20have%20the%20report%20populate%20the%20data%20from%20the%20data%20sheet%3A%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EDate%20range%3A%20Jan%201%20-%20Jan%203%3C%2FP%3E%3CP%3EQuantity%3A%20330%3C%2FP%3E%3CP%3ESales%3A%20%24450%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20imagine%20there%20is%20a%20simple%20formula%20for%20this...I%20have%20been%20using%20a%20massive%20series%20of%20%22IF%22%20statements%20and%20my%20spreadsheet%20is%20getting%20unstable...and%20too%20hard%20to%20fix%2Fedit%2Fuse...%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EAnyone%20have%20any%20thoughts%3F%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-2337621%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EExcel%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EFormulas%20and%20Functions%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2337711%22%20slang%3D%22en-US%22%3ERe%3A%20Date%20Ranges%20and%20Pulling%20Data%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2337711%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F1048524%22%20target%3D%22_blank%22%3E%40ggjer%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EI'd%20suggest%20you%20to%20reconsider%20the%20data%20structuring%2C%20more%20exactly%20use%20table%20as%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3BQuantity%26nbsp%3B%20Price%20Sales%3C%2FP%3E%0A%3CP%3EJan%201%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20100%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%241%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%26nbsp%3B%3C%2FP%3E%0A%3CP%3EJan%202%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20110%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%241%3C%2FP%3E%0A%3CP%3EJan%203%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B120%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%242%3C%2FP%3E%0A%3CP%3E...%3C%2FP%3E%0A%3CP%3ESales%20will%20be%20calculated.%20Same%20with%20other%20fields.%20With%20that%20you%20may%20build%20reports%20using%20PivotTable%20or%20formulas%20relatively%20easy.%20Otherwise%20that's%20not%20simple%20task%20and%20in%20any%20case%20you%20need%20to%20do%20such%20transformation%20in%20background%20to%20generate%20reports.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EFor%20already%20existing%20data%20that's%20one%20time%20job%20to%20transpose%20the%20data%2C%20could%20be%20done%20by%20formula%20or%20Power%20Query.%20In%20any%20case%20it's%20better%20if%20you%20provide%20sample%20file%2C%20otherwise%20someone%20shall%20make%20some%20guesses%20and%20assumptions%20(e.g.%20Jan%201%20is%20text%20or%20date%20formatted%20as%20this)%2C%20build%20the%20model%20and%20play%20with%20formulas.%20Without%20the%20file%20much%20less%20chances%20to%20have%20an%20answer%20plus%20assumptions%20could%20be%20wrong.%3C%2FP%3E%3C%2FLINGO-BODY%3E
Occasional Visitor

Using Office 365 on an MS Surface device.

 

I am trying to create a spreadsheet where I can enter daily data for various items (sales, quantity, price, etc.).  This data is in a separate worksheet and is populated every day for the year.  So, I have a row with dates and underneath, rows with all the data I am tracking for each date:

                       Jan 1        Jan 2          Jan 3     etc...

Quantity          100          110           120

Price                  $1              $1           $2

Sales                $100        $110         $240

 

I then have a separate worksheet where I create daily, weekly, monthly, quarterly reports.  What I want to be able to do is set a date range on the report worksheet (for example, Jan 1 to Jan 3) and have the report populate the data from the data sheet:

 

Date range: Jan 1 - Jan 3

Quantity: 330

Sales: $450

 

I imagine there is a simple formula for this...I have been using a massive series of "IF" statements and my spreadsheet is getting unstable...and too hard to fix/edit/use...

 

Anyone have any thoughts?

 

1 Reply

@ggjer 

I'd suggest you to reconsider the data structuring, more exactly use table as

               Quantity  Price Sales

Jan 1        100          $1      

Jan 2        110          $1

Jan 3         120          $2

...

Sales will be calculated. Same with other fields. With that you may build reports using PivotTable or formulas relatively easy. Otherwise that's not simple task and in any case you need to do such transformation in background to generate reports.

 

For already existing data that's one time job to transpose the data, could be done by formula or Power Query. In any case it's better if you provide sample file, otherwise someone shall make some guesses and assumptions (e.g. Jan 1 is text or date formatted as this), build the model and play with formulas. Without the file much less chances to have an answer plus assumptions could be wrong.