Index Match

Brentsa

Board Regular
Joined
Oct 3, 2013
Messages
118
Office Version
  1. 365
Platform
  1. Windows
Hi I have a sample Table:

CashierSales RefDate:ProductTotal SalesTenderedDifference
Harry
5243​
02-02-21​
Apple9.009.00-
Ben
5244​
03-02-21​
Pear2.502.50-
Sally
5244​
04-02-21​
Grape10.0010.00-
Gareth
5244​
05-02-21​
Peach11.2511.25-
Beth
5244​
06-02-21​
Lime9.009.00-
Beth
5244​
07-02-21​
Lemon21.0021.00-
Ben
5244​
08-02-21​
Orange5.009.00(4.00)
Sally
5244​
09-02-21​
Apple8.508.50-
Gareth
5244​
10-02-21​
Lime4.004.00-

I want to run a Index and match formula based on the amount. So if for example I want to match 9.00 I want the result to give me Harry, Beth and Ben. regardless if 9.00 appears in column E or F and I want all options for the 9.00.

just so that you are aware my original data consist of over 1000 rows and I will need to search up to 100 amounts. I normally have the amounts listed in one column and need all the options. I have used a filter formula before but due to different systems being used I need to avoid the Filter Formula.
 

Excel Facts

How can you turn a range sideways?
Copy the range. Select a blank cell. Right-click, Paste Special, then choose Transpose.
Something like this?
Book3
ABCDEFGHIJKL
1CashierSales RefDate:ProductTotal SalesTenderedDifferenceAmountResults
2Harry524302-02-21Apple99-9HarryBethBen
3Ben524403-02-21Pear2.52.5-2.5Ben  
4Sally524404-02-21Grape1010-
5Gareth524405-02-21Peach11.2511.25-
6Beth524406-02-21Lime99-
7Beth524407-02-21Lemon2121-
8Ben524408-02-21Orange59-4
9Sally524409-02-21Apple8.58.5-
10Gareth524410-02-21Lime44-
Sheet8
Cell Formulas
RangeFormula
J2:L3J2=IFERROR(INDEX($A:$A,AGGREGATE(15,6,ROW($A$2:$A$10)/((($E$2:$E$10=$I2)+($F$2:$F$10=$I2))>0)/ISNA(MATCH($A$2:$A$10,$I2:I2,0)),1)),"")
 
Upvote 0
Solution

Forum statistics

Threads
1,215,042
Messages
6,122,810
Members
449,095
Latest member
m_smith_solihull

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