Reply
 
Thread Tools Display Modes
  #1   Report Post  
Posted to microsoft.public.word.docmanagement
Mike Mike is offline
external usenet poster
 
Posts: 229
Default Need help with a formula

I am trying to find a formula to search for text in a range of cells that if
found it would return data in another cell. For instance, Retun Jones in the
Sunday cell in the XXXX cell and so on. Also Tuesday it would return Doe and
Jones in the SA 61/1 XXXX cell on Monday.

Name Sunday Monday Tuesday Wednesday Thursday Friday Saturday
Smith W T DO DO W
PT 60 PT 61/1
Doe T PT 61/1 PT 60 PT 61/1 DO DO
W
Jones PT 60 PT 61/1 W T PT 60 PT
61/1 W

PT 60 XXXX XXXX XXXX XXXX XXXX XXXX XXXX
PT61/1 XXXX XXXX XXXX XXXX XXXX XXXX XXXX
  #2   Report Post  
Posted to microsoft.public.word.docmanagement
macropod[_2_] macropod[_2_] is offline
external usenet poster
 
Posts: 2,059
Default Need help with a formula

Hi Mike,

It's not possible to test cells containing text with field coding and cell references. You would need to bookmark each string (not
the whole cell) for the test. Even then, the ability to test the contents of each bookmark is severely limited and there really is
no practical way (even if there is a feasible way) of doing what you want via field coding. What you want to do is better done via a
macro or in Excel (you could embed an Excel worksheet in your document) via, say, an Index/Match combination.

--
Cheers
macropod
[Microsoft MVP - Word]


"Mike" wrote in message ...
I am trying to find a formula to search for text in a range of cells that if
found it would return data in another cell. For instance, Retun Jones in the
Sunday cell in the XXXX cell and so on. Also Tuesday it would return Doe and
Jones in the SA 61/1 XXXX cell on Monday.

Name Sunday Monday Tuesday Wednesday Thursday Friday Saturday
Smith W T DO DO W
PT 60 PT 61/1
Doe T PT 61/1 PT 60 PT 61/1 DO DO
W
Jones PT 60 PT 61/1 W T PT 60 PT
61/1 W

PT 60 XXXX XXXX XXXX XXXX XXXX XXXX XXXX
PT61/1 XXXX XXXX XXXX XXXX XXXX XXXX XXXX


  #3   Report Post  
Posted to microsoft.public.word.docmanagement
macropod[_2_] macropod[_2_] is offline
external usenet poster
 
Posts: 2,059
Default Need help with a formula


Hi Mike,

It's not possible to test cells containing text with field coding and cell references. You would need to bookmark each string (not
the whole cell) for the test. Even then, the ability to test the contents of each bookmark is severely limited and there really is
no practical way (even if there is a feasible way) of doing what you want via field coding. What you want to do is better done via a
macro or in Excel (you could embed an Excel worksheet in your document) via, say, an Index/Match combination.

--
Cheers
macropod
[Microsoft MVP - Word]


"Mike" wrote in message ...
I am trying to find a formula to search for text in a range of cells that if
found it would return data in another cell. For instance, Retun Jones in the
Sunday cell in the XXXX cell and so on. Also Tuesday it would return Doe and
Jones in the SA 61/1 XXXX cell on Monday.

Name Sunday Monday Tuesday Wednesday Thursday Friday Saturday
Smith W T DO DO W
PT 60 PT 61/1
Doe T PT 61/1 PT 60 PT 61/1 DO DO
W
Jones PT 60 PT 61/1 W T PT 60 PT
61/1 W

PT 60 XXXX XXXX XXXX XXXX XXXX XXXX XXXX
PT61/1 XXXX XXXX XXXX XXXX XXXX XXXX XXXX


  #4   Report Post  
Posted to microsoft.public.word.docmanagement
Mike Mike is offline
external usenet poster
 
Posts: 229
Default Need help with a formula

Thanks,
I'll post it in Excel discussion group.
Mike

"Mike" wrote:

I am trying to find a formula to search for text in a range of cells that if
found it would return data in another cell. For instance, Retun Jones in the
Sunday cell in the XXXX cell and so on. Also Tuesday it would return Doe and
Jones in the SA 61/1 XXXX cell on Monday.

Name Sunday Monday Tuesday Wednesday Thursday Friday Saturday
Smith W T DO DO W
PT 60 PT 61/1
Doe T PT 61/1 PT 60 PT 61/1 DO DO
W
Jones PT 60 PT 61/1 W T PT 60 PT
61/1 W

PT 60 XXXX XXXX XXXX XXXX XXXX XXXX XXXX
PT61/1 XXXX XXXX XXXX XXXX XXXX XXXX XXXX

  #5   Report Post  
Posted to microsoft.public.word.docmanagement
Mike Mike is offline
external usenet poster
 
Posts: 229
Default Need help with a formula

Thanks,
I'll post it in Excel discussion group.
Mike

"Mike" wrote:

I am trying to find a formula to search for text in a range of cells that if
found it would return data in another cell. For instance, Retun Jones in the
Sunday cell in the XXXX cell and so on. Also Tuesday it would return Doe and
Jones in the SA 61/1 XXXX cell on Monday.

Name Sunday Monday Tuesday Wednesday Thursday Friday Saturday
Smith W T DO DO W
PT 60 PT 61/1
Doe T PT 61/1 PT 60 PT 61/1 DO DO
W
Jones PT 60 PT 61/1 W T PT 60 PT
61/1 W

PT 60 XXXX XXXX XXXX XXXX XXXX XXXX XXXX
PT61/1 XXXX XXXX XXXX XXXX XXXX XXXX XXXX

Reply
Thread Tools
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Sum formula? Jack Bouwkamp Microsoft Word Help 6 February 10th 10 10:38 PM
Formula Neil Tables 3 December 25th 07 12:05 AM
Hlp! Seq within Formula dee Tables 10 October 15th 07 11:09 PM
Formula Roger Tables 3 May 14th 06 06:07 PM
how to align caption of formula right whereas formula itself left Martin van Leeuwen Microsoft Word Help 1 October 22nd 05 06:39 AM


All times are GMT +1. The time now is 05:47 AM.

Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 Microsoft Office Word Forum - WordBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Word"