You are here:

Excel/Harvest Multiple RowLabel criteria with one Excel formula?

Advertisement


Question
Hi Jerry.   I have a very large range that is a Pivot Table Source.  Within this range are a myriad of Date RowLabel fields such as "2012-M5" or "2012-W51" or "2012-Q2" (M=month, W=week, Q=quarter).  I want to use an Excel Formula such as SUMIF to harvest the Value-field data from these Row Labels.   

For example, I want to have two Master Input cells where the user can enter a START DATE and an END DATE,  and then have those input data linked to a SUMIF (or other) formula to gather the range of data.   However, I want to gather all Row Label data containing dates between the input Start Date and End Date into one place.   Let's say that I enter 1/8/2010 into the Start Date input  and 12/18/2012 into the End Date input.   I will want to see data gathered from EVERY ROW LABEL criteria between 1/8/2010 and 12/18/2012 which could be hundreds of rows worth of data summarized in one place.     

Jerry, is it possible to gather multiple Row Label Data between two dates with one SUMIF or SUMIFS formula?  Or is there a better formula or technique to use that can take a DATE RANGE and pull multiple Pivot Row Label data from that date range into one Summary cell?    I know that SUMIF does well with gathering all the data for a specific date criteria, but what about my situation where I want the data summed for a date-range of multiple date criteria?

Thanks so much for your help here!

Answer
I can't imagine any simple way to extract data using row labels like yours.  Before you can do anything "normal", you would need to do something to convert those row labels into standard simple date references.

Perhaps adding a column to your data that is designed to convert those strings into a standard date.  You could create a two-column lookup table that lists those labels in one column and the date to convert it to in the next column.  Then a simple VLOOKUP could be used to lookup the approprate date from that table.

Once that new column is in place, you can create simple SUMIFS() formulas to gather the date from within the specified date range.

That's the only thing that comes to mind.
About Excel
This topic answers questions related to Microsoft Excel spreadsheet (or workbook) stand-alone or Mircrosoft Office Excel including Excel 2003, Excel 2007, Office 2000, and Office XP. You can get Excel help on Excel formulas(or functions), Excell macros, charting in Excel, advanced features, and the general use of Excel. This does not provide a general Excel tutorial nor the basics of using a spreadsheet. It provides specific answers to using Microsoft Excel only. If you do not see your Excel question answered in this area then please ask an Excel question here

Excel

All Answers


Answers by Expert:


Ask Experts

Volunteer


Jerry Beaucaire

Expertise

Excel Formulas, macros, automation. Microsoft Excel MVP - 2010. Code site with free code snippets and techniques: http://sites.madrocketscientist.com/jerrybeaucaires-excelassistant/files

Experience

Microsoft Excel MVP - 2010. I have my own extensive Excel help/code site: http://sites.madrocketscientist.com/jerrybeaucaires-excelassistant/files ===================== I have been offering free assistance as an Excel aid on many web sites for many years: (http://www.excelforum.com - JBeaucaire) ======== (http://www.askmehelpdesk.com/spreadsheets - JBeaucaire) ======= (http://www.mrexcel.com/forum - jbeaucaire)

Education/Credentials
Bachelor's Degree from Azusa Pacific University in Mathematics and Music Composition

Awards and Honors
Microsoft Excel MVP 2010

©2016 About.com. All rights reserved.