Index and Match Question using Dates Multiple Criteria and Return Value

EmHuuBub2019

New Member
Joined
Apr 17, 2019
Messages
3
Hi, I am working on an Index Match function whereby I input a date in one field and a text in another field and it should return the total sales for a product for that particular month. This should bring back a value if the conditions are met. I need to have multiple criteria because my formula is showing March 1, 2018 but I want it to bring back total March sales. The formula I currently have is below. Therefore I used an "&" but I do not think this is correct because you can't use a date (March) and text field (MTD) together... =INDEX('[Wkly Orders & Sales Actuals, 2018.xls]LE & Budget'!$E$15:$CA$15,MATCH( $A$8, '[Wkly Orders & Sales Actuals, 2018.xls]LE & Budget'!$E$2:$CA$2,0)) Any help is appreciated to get this to work. Thanks.
 

Excel Facts

Workdays for a market open Mon, Wed, Friday?
Yes! Use "0101011" for the weekend argument in NETWORKDAYS.INTL or WORKDAY.INTL. The 7 digits start on Monday. 1 means it is a weekend.
Try this:

=SUMPRODUCT(('[Wkly Orders & Sales Actuals, 2018.xls]LE & Budget'!E2:CA2>=A8)*('[Wkly Orders & Sales Actuals, 2018.xls]LE & Budget'!E2:CA2<=EOMONTH(A8,0))*('[Wkly Orders & Sales Actuals, 2018.xls]LE & Budget'!E15:CA15))
 
Upvote 0
Hi, I am working on an Index Match function whereby I input a date in one field and a text in another field and it should return the total sales for a product for that particular month. This should bring back a value if the conditions are met. I need to have multiple criteria because my formula is showing March 1, 2018 but I want it to bring back total March sales. The formula I currently have is below. Therefore I used an "&" but I do not think this is correct because you can't use a date (March) and text field (MTD) together... =INDEX('[Wkly Orders & Sales Actuals, 2018.xls]LE & Budget'!$E$15:$CA$15,MATCH( $A$8, '[Wkly Orders & Sales Actuals, 2018.xls]LE & Budget'!$E$2:$CA$2,0)) Any help is appreciated to get this to work. Thanks.
-The answer you provided does not work. I have two different spreadsheets. My formula which requires the data for Mar-2018 MTD date below is bringing back the data for 2-Mar 2018 which is not what I want. I cannot use March in the formula because that is a date field and MTD because that is a text field together as stated earlier. I hope this clarifies what I need.
[TABLE="width: 420"]
<colgroup><col width="93" style="width: 70pt; mso-width-source: userset; mso-width-alt: 3299; mso-outline-level: 1;"> <col width="93" style="width: 70pt; mso-width-source: userset; mso-width-alt: 3299; mso-outline-level: 1;"> <col width="93" style="width: 70pt; mso-width-source: userset; mso-width-alt: 3299; mso-outline-level: 1;"> <col width="93" style="width: 70pt; mso-width-source: userset; mso-width-alt: 3299; mso-outline-level: 1;"> <col width="93" style="width: 70pt; mso-width-source: userset; mso-width-alt: 3299; mso-outline-level: 1;"> <col width="93" style="width: 70pt; mso-width-source: userset; mso-width-alt: 3299;"> <tbody>[TR]
[TD="class: xl69, width: 93, bgcolor: white"]WK1[/TD]
[TD="class: xl69, width: 93, bgcolor: white"]WK2[/TD]
[TD="class: xl69, width: 93, bgcolor: white"]WK3[/TD]
[TD="class: xl69, width: 93, bgcolor: white"]WK4[/TD]
[TD="class: xl69, width: 93, bgcolor: white"]WK5[/TD]
[TD="class: xl73, width: 93, bgcolor: silver"]MTD[/TD]
[/TR]
[TR]
[TD="class: xl71, bgcolor: white"]2-Mar-18[/TD]
[TD="class: xl71, bgcolor: white"]9-Mar-18[/TD]
[TD="class: xl71, bgcolor: white"]16-Mar-18[/TD]
[TD="class: xl71, bgcolor: white"]23-Mar-18[/TD]
[TD="class: xl71, bgcolor: white"]30-Mar-18[/TD]
[TD="class: xl70, bgcolor: silver"]Mar-18[/TD]
[/TR]
</tbody>[/TABLE]
 
Upvote 0
Please see my answer below because unfortunately your formula does not work. I provided the copy of the field that I need. Below the header is data. The formula is used in another spreadsheet to match the March date and bring back the value that is in the March MTD row for the specific part # that I need.Thanks.
 
Upvote 0
You could upload a copy of your file, with a couple of examples of what you have and what you expect results; to a free site such as www.box.com or www.dropbox.com. Once you do that, mark it for 'Sharing' and you will be given a link to the file that you can post here. If the workbook contains confidential information, you could replace it with generic data.
 
Upvote 0

Forum statistics

Threads
1,223,896
Messages
6,175,259
Members
452,626
Latest member
huntinghunter

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