![]() |
#1
|
|||
|
|||
![]()
Ok, this is a great challange! Honor to the one who solves this one
![]() I'm making a budget. I want to sort my spendings into categories. My spendings are downloaded as a spreadsheet from my bank. It looks like this: Details Sum Category VISA Mc Donalds -130,00 138766 Statoil -640,00 76234 TAXI 20141 -357,00 23454 BurgerKing -130,00 The categories in this example would be: 1: lunch 2: gas Now, I want to search for multiple strings in the A-column and return the correct category for each spending. F.x: I will search for texts like "donalds","burger","oil". If no match is found, the return value should be an empty string. The result should look like: Details Sum Category VISA Mc Donalds -130,00 lunch 138766 Statoil -640,00 gas 76234 TAXI 20141 -357,00 23454 BurgerKing -130,00 lunch I have tried =IFERROR(IF(SEARCH("*donalds*";A1);"lunch";"");"") , but I have only been successful with searching for one string. Using macro is an option, but I want to try solving this one without use of macro. I'll be greatful for all the help you may provide! |
Tags |
categories, search results, string |
Thread Tools | |
Display Modes | |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
![]() |
lwls | Excel Programming | 5 | 11-08-2014 02:11 PM |
![]() |
Shinaj | Excel Programming | 1 | 05-09-2014 09:17 AM |
Search cell text from Excel into ms-word | ShailShin | Word VBA | 1 | 04-21-2014 02:12 AM |
How do I output text to a specific cell (x,y)? | norwood | Word VBA | 2 | 01-31-2014 08:43 AM |
How to set style automatically for specific texts | ragesz | Word | 2 | 07-25-2013 07:08 AM |