LOOKUP(9.99999999999999E+307,SEARCH( With Additional Conditions

schmallegger

New Member
Joined
Jan 8, 2018
Messages
1
I hope that someone has an elegant solution to solve my "situation", as follows:

Via keywords, I make a pre-qualification of ledger entries. This works very well via the following statement in a ledger table:

=IFERROR(LOOKUP(9.99999999999999E+307,SEARCH(Keywords[Keyword],[@Description]),Keywords[Account]),"Missing Keyword")

However, and now comes the spice:

I would like to add additional criteria for the search-range of the command above based on the data structure of the Keywords table, as I have several conditions:

Keyword Condition Amount Type Condition Amount Condition Account Type Condition Account No. Condition Company Account Type Account
ThisIsMyKeyword Negative Bank Account ACC0 Private Bank Account ACC1
ThisIsMyKeyword Positive Bank Account ACC0 Private Bank Account ACC2
ThisIsMyKeyword +123 Bank Account ACC0 Private Bank Account ACC3
ThisIsMyKeyword -123 Bank Account ACC0 Private Bank Account ACC4
ThisIsMyKeyword Bank Account ACC0 Private Bank Account ACC5
ThisIsMyKeyword Negative Bank Account ACC0 Live Bank Account ACC6
ThisIsMyKeyword Positive Bank Account ACC0 Live Bank Account ACC7
ThisIsMyKeyword +123 Bank Account ACC0 Live Bank Account ACC8
ThisIsMyKeyword -123 Bank Account ACC0 Live Bank Account ACC9
ThisIsMyKeyword Bank Account ACC0 Live Bank Account ACC10
ThisIsMyKeyword Bank Account ACC0 Live Bank Account ACC11
ThisIsMyKeyword Bank Account ACC12


These additional criteria I know of course from my ledger table and are changing dynamically.

I tried things like "=IFERROR(LOOKUP(9.99999999999999E+307,SEARCH(Keywords[Condition Account Type]&Keywords[Condition Account No.]&Keywords[Keyword],[@Description]),"Bank Account"&[Source]&Keywords[Keyword]),"Missing Keyword")" but this won't work. Does anyone have an idea, what I am doing wrong and/or come up with a smart solution?

Thanks in advance!
 

Excel Facts

When did Power Query debut in Excel?
Although it was an add-in in Excel 2010 & Excel 2013, Power Query became a part of Excel in 2016, in Data, Get & Transform Data.

Forum statistics

Threads
1,224,823
Messages
6,181,181
Members
453,022
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