Johnboy28

Board Regular
Joined
Jun 22, 2013
Messages
172
Office Version
  1. 365
  2. 2019
  3. 2016
  4. 2013
  5. 2010
Platform
  1. Windows
Hi, I require a formula to match Day, SO Number & product Code to return invoiced Weight?

Thank you

DaySO NumberProduct CodeInvoiced WeightDaySO NumberProduct CodeInvoiced Weight
29/01/2019SO-291420261021904030/01/2019SO-29383020502 ??
30/01/2019SO-2922531040016830/01/2019SO-29383010519 ??
30/01/2019SO-2922531040116830/01/2019SO-29391720700 ??
30/01/2019SO-29383020502117
30/01/2019SO-29383021617698
30/01/2019SO-29383021618151
30/01/2019SO-293830821001012
30/01/2019SO-29383010331190
30/01/2019SO-2938301051945
30/01/2019SO-29391720039120
30/01/2019SO-29391720700115

<tbody>
</tbody>

 

Excel Facts

Add Bullets to Range
Select range. Press Ctrl+1. On Number tab, choose Custom. Type Alt+7 then space then @ sign (using 7 on numeric keypad)
Exactly. That may or may not be what is required. Sometimes you may need the first 'hit' from the top (use index match), sometimes the last (use lookup) and sometimes a sum (sumproduct or sumifs).

I knew about the index match returning the first instance, but did not know that lookup returned the last! That's good to know.

I suppose there would be issues if there were more than 2 cases of uniqueness and you need one of the middle cases? Then more criteria would be required?
 
Upvote 0

Book1
ABCDEFGHI
1DaySO NumberProduct CodeInvoiced WeightDaySO NumberProduct CodeInvoiced Weight
21/29/2019SO-29142026102190401/30/2019SO-29383020502117
31/30/2019SO-292253104001681/30/2019SO-2938301051945
41/30/2019SO-292253104011681/30/2019SO-29391720700115
51/30/2019SO-29383020502117
61/30/2019SO-29383021617698
71/30/2019SO-29383021618151
81/30/2019SO-293830821001012
91/30/2019SO-29383010331190
101/30/2019SO-2938301051945
111/30/2019SO-29391720039120
121/30/2019SO-29391720700115
Sheet1


In I2 control+shift+enter, not just enter, and copy down:

=INDEX($D$2:$D$12,MATCH($H2,IF($A$2:$A$12=$F2,IF($B$2:$B$12=$G2,$C$2:$C$12)),0))
 
Upvote 0
or simply sum all the values that match all 3 criteria

Excel 2016 (Windows) 32 bit
A
B
C
D
E
F
G
H
I
J
K
1
Day
SO Number
Product
Code
Invoiced
Weight
.
.
Day
SO Number
Product
Code
Invoiced
Weight
formula
in J2 copied down
2
29/01/2019​
SO-291420​
26102​
19040​
30/01/2019​
SO-293830​
20502​
117
=SUMIFS(D:D,A:A,G2,B:B,H2,C:C,I2)
3
30/01/2019​
SO-292253​
10400​
168​
30/01/2019​
SO-293830​
10519​
45
4
30/01/2019​
SO-292253​
10401​
168​
30/01/2019​
SO-293917​
20700​
115
5
30/01/2019​
SO-293830​
20502​
117​
6
30/01/2019​
SO-293830​
21617​
698​
7
30/01/2019​
SO-293830​
21618​
151​
8
30/01/2019​
SO-293830​
82100​
1012​
9
30/01/2019​
SO-293830​
10331​
190​
10
30/01/2019​
SO-293830​
10519​
45​
11
30/01/2019​
SO-293917​
20039​
120​
12
30/01/2019​
SO-293917​
20700​
115​
Sheet: Sheet3
 
Upvote 0

Forum statistics

Threads
1,214,524
Messages
6,120,049
Members
448,940
Latest member
mdusw

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