Hey!
Ran in to a bit of a problem with finding information from multiple sheets in the same workbook.
PREFACE
Every month we have an order sheet that's generated specifically by the store for that particular month. That sheet is sent to me for record keeping purposes which I aggregate into one workbook while renaming the sheet name to the month it belongs to. So as you can imagine the workbook has sheets for every single month of the year for up to two years.
Each of these sheets has the exact same headers and we use named ranges for each of the columns (ITEM_NAME, QTY, TOTAL, DATE, CAT). These named ranges are the same across all sheets but the scope of the range is restricted to that particular sheet. So that way, Sheet1, Sheet2, Sheet3 can all have the same named ranges.
REQUIREMENT
I need a sheet at the start of the workbook, where all I have to do is type in the item name and it retrieves the corresponding data from across all the sheets in the workbook (there can be multiple instances within the same sheet). It must present the data based on the most recent month to the oldest month and also order it from the last row to the top row.
EX:
Sheets Present: Aug, Sep, Oct
The data should be presented in the order of:
Oct: Last row to first row -> Sep: Last row to first row -> Aug: Last row to first row -> and so on.
Since new sheets are added every month, the formulas need to be able to pick that up (maybe from a helper sheet / column) and lookup the values accordingly.
I've attached a sample sheet which should make it easier. Thanks for any help.
Hope this can be achieved with just formulas, but in the event it cannot, then VBA is ok
Bookmarks