Need help with formula extracting values based on criteria

jwillits

New Member
Joined
Jul 10, 2018
Messages
36
Office Version
  1. 2010
Platform
  1. Windows
So I am trying to find a formula that will pull out unidentified charges from our bank account. I have a list of the known item charges and I would like to create a formula that will list all the items in the description that do not match those charges. So for instance,

KNOWN CHARGES: APPLE, PEAR, GRAPE

BANK STATEMENT:

APPLE 20.00
ORANGE 30.00
PEAR 15.00
GRAPE 5.00
CARROT 2.00

So in this example, the formula I want would return a list that looks like this, as these items arent in our list of known charges.

ORANGE
CARROT

Appreciate any help, thanks.
 
Last edited:

Excel Facts

Create a Pivot Table on a Map
If your data has zip codes, postal codes, or city names, select the data and use Insert, 3D Map. (Found to right of chart icons).
Try this, copied across and down.

Excel Workbook
CDEFGHI
1KnownBANK STATEMENT:UNKNOWN
2APPLEAPPLE20ORANGE30
3PEARORANGE30CARROT2
4GRAPEPEAR15
5GRAPE5
6CARROT2
7
Unknown
 
Upvote 0
Try this, copied across and down.

Unknown

CDEFGHI
1KnownBANK STATEMENT:UNKNOWN
2APPLEAPPLE20ORANGE30
3PEARORANGE30CARROT2
4GRAPEPEAR15
5GRAPE5
6CARROT2
7

<tbody>
</tbody>

Spreadsheet Formulas
CellFormula
H2=IFERROR(INDEX(E$2:E$6,AGGREGATE(15,6,ROW(E$2:E$6)-ROW(E$2)+1/(COUNTIF($C$2:$C$4,$E$2:$E$6)=0),ROWS(H$2:H2))),"")

<tbody>
</tbody>

<tbody>
</tbody>



I think I may have needed to explain a bit better, or else I can't figure out a way to get this to work. We are going to be continuously adding to the bank statement column as months go by, so I would like to search the entire column. Also, it will never provide an exact match to the cell, as we only pulled out key words to verify the known charge. For instance, we will have a lot of stuff that looks like this..

APPLE GDE 3453245
APPLE FDS 54322254
PEAR DKK 243242
ORANGE TCP 2534234

To where the known charge is all of the items containing the key words or phrases we have listed, however, not an exact match of the cell.

Not sure if this makes a difference in the formula, but I would appreciate help getting this to work whether the formula needs some small changes or if I am just doing something incorrectly.
 
Last edited:
Upvote 0
So, if you had "ORANGE TCP 2534234" in the Bank Statement column, what do you want pulled out to the 'Unknown" column?
Just "ORANGE" or the whole cell value "ORANGE TCP 2534234"?
 
Upvote 0
Try this.
K1 is empty or holds a 0
K2 copied down at least to the end of the data (If you want, this column could then be hidden)
H2 is copied across and down

Excel Workbook
CDEFGHIJK
1KnownBANK STATEMENT:UNKNOWN
2APPLEAPPLE GDE 345324520ORANGE TCP 253423450
3PEARORANGE TCP 25342345CARROT xyz251
4GRAPEAPPLE FDS 54322254301
5PEAR DKK 243242151
61
7CARROT xyz252
8GRAPE ABC 6598622
Unknown
 
Upvote 0

Forum statistics

Threads
1,214,598
Messages
6,120,441
Members
448,966
Latest member
DannyC96

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