Formula / array to convert cell format for entire range to be used with Sumproduct

jbrouse

Active Member
Joined
Apr 28, 2005
Messages
329
Good morning.

I have a spreadsheet - "Orders" - that gives me daily production forecast for the next 3 months. I have created a separate tab that sums this data by month. The headers for the production forecast come in the format of YYYYMMDD while the headers on my monthly summary tab are, for example, "June". I have currently matched this data up by copying and pasting a formula

=TEXT(DATE(LEFT(B4,4),RIGHT(LEFT(B4,6),2),RIGHT(B4,2)),"mmmm")

above each column in the production forecast tab to convert the date format into a "month" text string. On my monthly summary tab, I use the following SUMPRODUCT to pull the data.

=SUMPRODUCT((SalesPNLookup=A1)*(SalesMonthLookup=A2),SalesData),

where SalesPNLookup is on sheet 'Orders', range A5:A10000
SalesMonthLookup is on sheet 'Orders', range B4:BR4
And SalesData is on sheet 'Orders', range B5:BR10000

This formula works well. However, the end users know nothing about Excel and formulas, so I do not want them to have to add the formula to the 'Orders' worksheet to make it work. Is there any way through named formulas or other that I can make this so that the end user simply copies and pastes the data into the worksheet and the calculations on the summary tab work?

I appreciate any help that can be offered.

Thanks in advance!
 

Excel Facts

Select all contiguous cells
Pressing Ctrl+* (asterisk) will select the "current region" - all contiguous cells in all directions.

Forum statistics

Threads
1,215,368
Messages
6,124,523
Members
449,169
Latest member
mm424

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