Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 132
Default find partial text contained in another cell

I have a data set that contains Date Worked (A), Transaction Text (B), Hours
(C), Value (D)

Unfortunatley, the Transaction Text contains the names of the employees and
are not always the same.

However, some part of the Transaction Text always contains the surname but
may be in a different location in the string. An example is "a cole - to
stores" and "a cole - fabricate basket".

I had thought to create a control list (surnames), then use sumproduct to
find the the control text within the free text descriptions and then
calculate the sum of the values and hours for a range of dates (pay periods)
for each match.

We have since given each person a unique code to search on. However, this is
historical data that I can't change without updating thousands of records.

Any solution would be gratefully appreciated.

Jim
--
Jim
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 132
Default find partial text contained in another cell

I came across a solution that witha little manipulation gives me the disired
result.

Here it is for anyone interested.

=SUMPRODUCT(--(ISNUMBER(FIND($A10,'Nebo Nov06'!$O$8:$O$1000)))*('Nebo
Nov06'!$S$8:$S$1000)*('Nebo Nov06'!$A$8:$A$1000=B$3)*('Nebo
Nov06'!$A$8:$A$1000<=C$3))

B3 & C3 are date ranges.

By making the list all upper case it finds the partial match okay. The only
issue is that Sumproduct is very slow to recalculate large amounts of data.
Even though I've ranged this over 1000 rows the actual data is only over 75
or so per list.

A better solution may be to use Dsum or the like. I might research this
later.


--
Jim


"Jim G" wrote:

I have a data set that contains Date Worked (A), Transaction Text (B), Hours
(C), Value (D)

Unfortunatley, the Transaction Text contains the names of the employees and
are not always the same.

However, some part of the Transaction Text always contains the surname but
may be in a different location in the string. An example is "a cole - to
stores" and "a cole - fabricate basket".

I had thought to create a control list (surnames), then use sumproduct to
find the the control text within the free text descriptions and then
calculate the sum of the values and hours for a range of dates (pay periods)
for each match.

We have since given each person a unique code to search on. However, this is
historical data that I can't change without updating thousands of records.

Any solution would be gratefully appreciated.

Jim
--
Jim

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
find specific text and make cell highlighted after the future Excel Discussion (Misc queries) 2 May 26th 06 02:11 PM
find partial values in cell Luke Excel Worksheet Functions 1 September 18th 05 03:46 PM
Find text in cell, copy row to new sheet Ajay Excel Discussion (Misc queries) 6 June 29th 05 08:40 AM
Finding Partial Text in a Cell bob Excel Worksheet Functions 6 December 18th 04 05:03 AM
GET.CELL Biff Excel Worksheet Functions 2 November 24th 04 07:16 PM


All times are GMT +1. The time now is 08:43 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"