INDEX MATCH with IF

russelluno123

New Member
Joined
Nov 15, 2018
Messages
4
Hi

i was wondering if i could use index match with IF to find the production volume by matching the delivery date and post it to the relavant month in sales

[TABLE="width: 1080"]
<colgroup><col><col><col><col><col><col><col><col><col><col span="5"></colgroup><tbody>[TR]
[TD][/TD]
[TD]Production Volume[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD] Sales [/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Invoice[/TD]
[TD]Jan-18[/TD]
[TD]Feb-18[/TD]
[TD]Mar-18[/TD]
[TD]Apr-18[/TD]
[TD]Shipping [/TD]
[TD]Consignment[/TD]
[TD]Date Of Delivery [/TD]
[TD] Invoice [/TD]
[TD][/TD]
[TD]Jan-18[/TD]
[TD]Feb-18[/TD]
[TD]Mar-18[/TD]
[TD]Apr-18[/TD]
[/TR]
[TR]
[TD]INV1525[/TD]
[TD]100[/TD]
[TD]100[/TD]
[TD]300[/TD]
[TD]150[/TD]
[TD]60[/TD]
[TD]30[/TD]
[TD]01-Apr[/TD]
[TD]INV1525[/TD]
[TD][/TD]
[TD]FALSE[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]INV1526[/TD]
[TD]200[/TD]
[TD]200[/TD]
[TD]200[/TD]
[TD]300[/TD]
[TD]45[/TD]
[TD]45[/TD]
[TD]01-Apr[/TD]
[TD]INV1526[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]INV1527[/TD]
[TD]200[/TD]
[TD]300[/TD]
[TD]100[/TD]
[TD]300[/TD]
[TD]30[/TD]
[TD]30[/TD]
[TD]02-Mar[/TD]
[TD]INV1527[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]INV1528[/TD]
[TD]400[/TD]
[TD]400[/TD]
[TD]130[/TD]
[TD]300[/TD]
[TD]0[/TD]
[TD]0[/TD]
[TD]01-Jan[/TD]
[TD]INV1528[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
 

Excel Facts

Links? Where??
If Excel says you have links but you can't find them, go to Formulas, Name Manager. Look for old links to dead workbooks & delete.
Is this what you need

Excel 2013/2016
ABCDEFGHIJKLMN
1InvoiceJan-18Feb-18Mar-18Apr-18ShippingConsignmentDate Of DeliveryInvoiceJan-18Feb-18Mar-18Apr-18
2INV1525100100300150603001-AprINV1525100100300150
3INV1526200200200300454501-AprINV1526200200200300
4INV1527200300100300303002-MarINV1527200300100300
5INV15284004001303000001-JanINV1528400400130300
Data
Cell Formulas
RangeFormula
K2=INDEX($B$2:$E$5,MATCH($J2,$A$2:$A$5,0),MATCH(K$1,$B$1:$E$1,0))


Fill formula down & across
 
Last edited:
Upvote 0
Hi Fluff

thank you for replying so promptly. I want to get the invoice to be in the sales depending on the delivery date (column H ) not the production date ie in sales should match the same invoice number from production but populate the corresponding month in sales based on delivery date (column H). Thanks very much for your input
 
Upvote 0
Can you please show some examples of the expected outcome
 
Upvote 0
[TABLE="width: 1016"]
<colgroup><col><col><col><col><col><col><col><col><col span="5"></colgroup><tbody>[TR]
[TD][/TD]
[TD]Production Volume[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD] Sales [/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]LON. No[/TD]
[TD]Jan-18[/TD]
[TD]Feb-18[/TD]
[TD]Mar-18[/TD]
[TD]Apr-18[/TD]
[TD]Shipping [/TD]
[TD]Consignment[/TD]
[TD]Date Of Delivery [/TD]
[TD] LON No. [/TD]
[TD]Jan-18[/TD]
[TD]Feb-18[/TD]
[TD]Mar-18[/TD]
[TD]Apr-18[/TD]
[/TR]
[TR]
[TD]INV1525[/TD]
[TD]100[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD]60[/TD]
[TD]30[/TD]
[TD]Apr-18[/TD]
[TD]INV1525[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD]100[/TD]
[/TR]
[TR]
[TD]INV1526[/TD]
[TD][/TD]
[TD]200[/TD]
[TD][/TD]
[TD][/TD]
[TD]45[/TD]
[TD]10[/TD]
[TD]Mar-18[/TD]
[TD]INV1526[/TD]
[TD][/TD]
[TD][/TD]
[TD]200[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]INV1527[/TD]
[TD][/TD]
[TD]300[/TD]
[TD][/TD]
[TD][/TD]
[TD]30[/TD]
[TD]30[/TD]
[TD]Apr-18[/TD]
[TD]INV1527[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD]300[/TD]
[/TR]
[TR]
[TD]INV1528[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD]400[/TD]
[TD]0[/TD]
[TD]0[/TD]
[TD]Apr-18[/TD]
[TD]INV1528[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD]400[/TD]
[/TR]
</tbody>[/TABLE]
 
Upvote 0
Unfortunately this is now beyond my somewhat limited knowledge of formulae.
Hopefully someone else will step in
 
Upvote 0
Figured something out


Excel 2013/2016
ABCDEFGHIJKLMN
1InvoiceJan-18Feb-18Mar-18Apr-18ShippingConsignmentDate Of DeliveryInvoice01/01/201801/02/201801/03/201801/04/2018
2INV1525100603001/04/2018INV1526   200
3INV1526200454501/02/2018INV1525100
4INV1527300303001/03/2018INV1527300
5INV15284000001/01/2018INV1528400
Jan
Cell Formulas
RangeFormula
K2=IF($H2=K$1,AGGREGATE(4,6,INDEX($B$2:$E$5,MATCH($J2,$A$2:$A$5,0),0)),"")
L2=IF($H2=L$1,AGGREGATE(4,6,INDEX($B$2:$E$5,MATCH($J2,$A$2:$A$5,0),0)),"")
M2=IF($H2=M$1,AGGREGATE(4,6,INDEX($B$2:$E$5,MATCH($J2,$A$2:$A$5,0),0)),"")
N2=IF($H2=N$1,AGGREGATE(4,6,INDEX($B$2:$E$5,MATCH($J2,$A$2:$A$5,0),0)),"")
 
Upvote 0

Forum statistics

Threads
1,224,823
Messages
6,181,182
Members
453,020
Latest member
Mohamed Magdi Tawfiq Emam

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