presenting a value if the cell on one sheet matches multiple criteria on another

nlweqfvneviepuctqm

New Member
Joined
Sep 29, 2021
Messages
3
Office Version
  1. 365
I have an order form that contains a load of products- product 1, 2, 3, 4 etc. I have the names of the orders that they appear on and the date that the order is expected. On a separate sheet all the orders are in a big long list. I need a formula that looks at the product name, ensures it is on the same row as both the appropriate order name and order date- then relays the amount on order. example spreadsheet attached.

any help greatly appreciated.

example spreadsheet - https://easyupload.io/h4lfpc
 

Excel Facts

Excel Wisdom
Using a mouse in Excel is the work equivalent of wearing a lanyard when you first get to college
Try this:-

example.xlsx
ABCDEFG
1NAME OF ORDERorder from franceorder from spain2nd order from franceorder from franceorder from spain2nd order from france
2DATE OF ORDER1/10/20211/10/202115/10/202115/10/20211/11/20211/11/2021
3product 110     
4product 2 20    
5product 3  30   
REPORT (2)
Cell Formulas
RangeFormula
B3:G5B3=IFERROR(LOOKUP(2,1/((ORDERS!$B$2:$B$25=B$1)*(ORDERS!$A$2:$A$25=B$2)*(ORDERS!$C$2:$C$25=$A3)),ORDERS!$D$2:$D$25),"")
 
Upvote 0
Solution
This worked-

Can you tell me how to amend this formula so that it doesn't take into account the order reference in cell B1.
the bit in bold is unnecessary
=IFERROR(LOOKUP(2,1/((ORDERS!$B$2:$B$25=B$1)*(ORDERS!$A$2:$A$25=B$2)*(ORDERS!$C$2:$C$25=$A3)),ORDERS!$D$2:$D$25),"")
new example spreadsheet here-
 
Upvote 0
You seem to have 2 different questions here.
The lookup was in response to the question with a workbook that looked like the below image.

In that context removing one of the criteria doesn't make sense.
If you really did want drop the Name of Order criteria the formula would like like this.
Excel Formula:
=IFERROR(LOOKUP(2,1/((ORDERS!$A$2:$A$25=B$2)*(ORDERS!$C$2:$C$25=$A3)),ORDERS!$D$2:$D$25),"")

If you want an explanation of how it works you can find one here:-
Excel LOOKUP Function Examples with Video and Workbook
1634165161482.png
 
Upvote 0
new example spreadsheet here-
Like I said dropping the criteria with the previous spreadsheet provided didn't make sense but your "new example" is a different layout and calls for a summing of the values and not to return a specific Order Name value.
I think you tried to open a new thread here, but unfortunately the wording was not clear enough to distinguish it from this thread and it was closed.
presenting/totalling a value if the cell on one sheet matches multiple criteria on another

For that you can try this:
example(1).xlsx
ABCDEFG
1codePO1PO2PO3PO4PO5PO6
2DATES
314/10/2021 00:0026/10/2021 00:0028/10/2021 00:0001/11/2021 00:0002/11/2021 00:0003/11/2021 00:00
4
5product 112302135200
6product 21994012310
7product 3174114320
Sheet1
Cell Formulas
RangeFormula
B5:G7B5=SUMIFS(Sheet2!$D$2:$D$20,Sheet2!$B$2:$B$20,$A5,Sheet2!$C$2:$C$20,B$3)


1634166044608.png
 
Upvote 0

Forum statistics

Threads
1,224,818
Messages
6,181,152
Members
453,021
Latest member
Justyna P

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