If ,index , match

aarti_rto

New Member
Joined
Nov 29, 2019
Messages
49
Office Version
  1. 2016
Platform
  1. Windows
  2. Web
Hi,

i used below forlmula with curley brackets in C Column , to get values like in D column but something is wrong in this formula .

=IF(COUNTIF($B$24:$B24,B24)=1,AND(COUNTIF($C$24,$C$24)=1,INDEX($J$24:$J$30,MATCH(1,(B24=$H$24:$H$30)*(C24=$I$24:$I$30),0)),0))

Pl help...
ColumnABCDGHI
Row
4SupplierPart NoStock As on Date ( forluma get results "False" )Values Required by FormulaSupplierPart SourceStock
5AAAABC
FALSE​
100​
AAAABC
100​
6AAAABC
FALSE​
0​
BBBCBD
200​
7BBBCBD
FALSE​
200​
CCCXYZ
100​
8CCCXYZ
FALSE​
100​
DDDABC
300​
9DDDXYZ
FALSE​
700​
EEECBD400
10EEECBD
FALSE​
400CCCABC
600​
11CCCABC
FALSE​
600​
DDDXYZ
700​
12CCCXYZ
FALSE​
0​
13BBBCBD
FALSE​
0​
 

Excel Facts

Move date out one month or year
Use =EDATE(A2,1) for one month later. Use EDATE(A2,12) for one year later.
hi aarti,

Please Find the Logic.

Book1
ABCDEFGHI
8SupplierPart NoStock As on Date ( forluma get results "False" )Values Required by FormulaSupplierPart SourceStock
9AAAABCFALSE100AAAABC100
10AAAABCFALSE0BBBCBD200
11BBBCBDFALSE200CCCXYZ100
12CCCXYZFALSE100DDDABC300
13DDDXYZFALSE700EEECBD400
14EEECBDFALSE400CCCABC600
15CCCABCFALSE600DDDXYZ700
16CCCXYZFALSE0
17BBBCBDFALSE0
Sheet1
Cell Formulas
RangeFormula
D9:D17D9=IF(COUNTIFS(A$9:A9,A9,B$9:B9,B9)=1,INDEX($I$9:$I$15,MATCH(1,(A9=$G$9:$G$15)*(B9=$H$9:$H$15),0)),0)
 
Upvote 0
Solution
Another option that doesn't need array entry
+Fluff 1.xlsm
ABCDEFGHI
1
2
3
4SupplierPart NoStock As on DateSupplierPart SourceStock
5AAAABC100AAAABC100
6AAAABC0BBBCBD200
7BBBCBD200CCCXYZ100
8CCCXYZ100DDDABC300
9DDDXYZ700EEECBD400
10EEECBD400CCCABC600
11CCCABC600DDDXYZ700
12CCCXYZ0
13BBBCBD0
14
Main
Cell Formulas
RangeFormula
C5:C13C5=IF(COUNTIFS(A$5:A5,A5,B$5:B5,B5)=1,SUMIFS($I$5:$I$11,$G$5:$G$11,A5,$H$5:$H$11,B5),0)
 
Upvote 0

Forum statistics

Threads
1,214,983
Messages
6,122,583
Members
449,089
Latest member
Motoracer88

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