Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 14
Default Finding a value and copying it to another cell

Ok I have a list of addresses as such ...

2424 Midpoint Drive
216 Racquette Dr #7
P O Box 260005
P O Box 260005
2094 N Union Street
8570 Valencia Street

I have been tasked at to find all of the records which contain P O box and
copy them to the adjacent cell on my table. If there a function that handles
this....

BTW thanks for all the help everyone in this forum has been :)
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 4,339
Default Finding a value and copying it to another cell

With data in A (A2 as start) put this in B2 and copy down:

=IF(ISNUMBER(FIND("P O Box",A2)),A2,"")

HTH

"Noncentz303" wrote:

Ok I have a list of addresses as such ...

2424 Midpoint Drive
216 Racquette Dr #7
P O Box 260005
P O Box 260005
2094 N Union Street
8570 Valencia Street

I have been tasked at to find all of the records which contain P O box and
copy them to the adjacent cell on my table. If there a function that handles
this....

BTW thanks for all the help everyone in this forum has been :)

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 367
Default Finding a value and copying it to another cell

It may not be the prettiest....but...in the cell adjacent to it, you might
use :

=if(left(A1, 7)="P O Box", A1, "")
or
=if(left(A1, 6)="PO Box", A1, "")

Not sure if you have PO box listed as "PO" or "P O" but this will look at
the first 7 (or 6) letters in the column from the left, compare the
text...and then copy the whole text over if it matches.

--
//Jason


"Noncentz303" wrote:

Ok I have a list of addresses as such ...

2424 Midpoint Drive
216 Racquette Dr #7
P O Box 260005
P O Box 260005
2094 N Union Street
8570 Valencia Street

I have been tasked at to find all of the records which contain P O box and
copy them to the adjacent cell on my table. If there a function that handles
this....

BTW thanks for all the help everyone in this forum has been :)

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
Finding last cell Jim[_2_] Excel Worksheet Functions 15 February 17th 07 07:45 PM
Finding row # of last cell containing contents Bob Excel Worksheet Functions 7 January 8th 07 07:13 PM
finding cell location Jshendel Excel Discussion (Misc queries) 5 August 30th 06 10:02 PM
Copying format to a new cell, w/o overwriting destination cell contents James C Excel Discussion (Misc queries) 1 October 18th 05 08:02 PM
finding duplicate then copying macro.. Michael A Excel Discussion (Misc queries) 5 March 8th 05 03:26 AM


All times are GMT +1. The time now is 08:15 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"