Microsoft Office Forums

Go Back   Microsoft Office Forums > >

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #1  
Old 11-24-2014, 04:17 PM
mariur89 mariur89 is offline Search for multiple texts in cell, return specific text Windows 7 64bit Search for multiple texts in cell, return specific text Office 2010 64bit
Novice
Search for multiple texts in cell, return specific text
 
Join Date: Nov 2014
Posts: 1
mariur89 is on a distinguished road
Default Search for multiple texts in cell, return specific text

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!
Reply With Quote
 

Tags
categories, search results, string



Similar Threads
Thread Thread Starter Forum Replies Last Post
Search for multiple texts in cell, return specific text Reference another workbook and return values from the same cell across multiple sheets/tabs lwls Excel Programming 5 11-08-2014 02:11 PM
Search for multiple texts in cell, return specific text Search the text in 3rd cell by using texts in 2 cells 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

Other Forums: Access Forums

All times are GMT -7. The time now is 10:21 PM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.
Search Engine Optimisation provided by DragonByte SEO (Lite) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
MSOfficeForums.com is not affiliated with Microsoft