How to rearrange row entries based on keywords in the entries itself

iamjesss

New Member
Joined
Feb 23, 2017
Messages
4
Hi guys, need some help here.

Basically every month, my company accounts dept will send me a long list of claims/expenses that have been made for the project I'm working on. I need to sort all these claims out into its respective category (flights, accommodation, food, etc.)

The problem is that the excel file they give me is not very organised. There is no unique identifier for the items. Only the cost, and a description of the claim which looks something like this:


[NAME OF EMPLOYEE] - TRANSPORT (L)- TAXI 4/11/2016
[NAME OF EMPLOYEE] - TRANSPORT (L)- TAXI 10/11/2016
[NAME OF EMPLOYEE] -BUSINESS - PHONE- MAXIS @ 07/11/2016
[NAME OF EMPLOYEE]- FOOD & ACCOM (O)- MEAL -18/11/2016
[NAME OF EMPLOYEE]-FOOD & ACCOM (O)- HOTEL - 10/11/2016 -11/11/2016


So imagine lines and lines of this going on for what feels like no end.

- How can I sort this bulk into categories (flights, accommodation, food, etc.)?
- Is there a formula that can pick out keywords?
- Is there a way to simply upload this excel sheet and let the program categorise it for me? Since the format will be the same each month, technically it'll always be the same column from which the program needs to search (eg. sort from H13 onwards)

Thanks lifesavers!

Jess
 

Excel Facts

How to total the visible cells?
From the first blank cell below a filtered data set, press Alt+=. Instead of SUM, you will get SUBTOTAL(9,)
Let's say you want to summarise by TAXI, PHONE, MEAL, HOTEL (as in your example).
Put these 4 categories as headers in I12:L12
Assuming the cost is in column G, enter in I13 the formula =IF(ISNUMBER(SEARCH(I$12,$H13)),$G13,"") and drag across and down.

You will also need a column for un-categorised items:
=IF(COUNTIF(I13:L13,"")=4,G13,"")
 
Last edited:
Upvote 0
Yes, the name of employee, item, and date are all in one cell per row. The cost amount is in its own separate cell in the same row
 
Upvote 0

Forum statistics

Threads
1,215,583
Messages
6,125,665
Members
449,247
Latest member
wingedshoes

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