#1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 127
Default Extracting Data

I have a spreadsheet with 390 rows. In one column I have data such as this:


6" MARGINATA UPC#200653

Some of the lines have UPC# and some don't. The ones that do I would like
to extract out to another column. Thanks for any help!!!

  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 10,124
Default Extracting Data

datafilterautofilterfilter on column desiredcustomcontainsupc
voila
or a looping macro using if INSTR
or a formula
=IF(ISERROR(SEARCH("upc",H2)),"",H2)

--
Don Guillett
Microsoft MVP Excel
SalesAid Software

"klafert" wrote in message
...
I have a spreadsheet with 390 rows. In one column I have data such as
this:


6" MARGINATA UPC#200653

Some of the lines have UPC# and some don't. The ones that do I would like
to extract out to another column. Thanks for any help!!!


  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 127
Default Extracting Data

I am sorry guess I wasn't completely clear, I just want to extract the UPC
Code Number.

"Don Guillett" wrote:

datafilterautofilterfilter on column desiredcustomcontainsupc
voila
or a looping macro using if INSTR
or a formula
=IF(ISERROR(SEARCH("upc",H2)),"",H2)

--
Don Guillett
Microsoft MVP Excel
SalesAid Software

"klafert" wrote in message
...
I have a spreadsheet with 390 rows. In one column I have data such as
this:


6" MARGINATA UPC#200653

Some of the lines have UPC# and some don't. The ones that do I would like
to extract out to another column. Thanks for any help!!!



  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 127
Default Extracting Data

I was using the formula, which worked but I only want the UPC Code #
extracted not the whole column - thanks

"Don Guillett" wrote:

datafilterautofilterfilter on column desiredcustomcontainsupc
voila
or a looping macro using if INSTR
or a formula
=IF(ISERROR(SEARCH("upc",H2)),"",H2)

--
Don Guillett
Microsoft MVP Excel
SalesAid Software

"klafert" wrote in message
...
I have a spreadsheet with 390 rows. In one column I have data such as
this:


6" MARGINATA UPC#200653

Some of the lines have UPC# and some don't. The ones that do I would like
to extract out to another column. Thanks for any help!!!



  #8   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 8,520
Default Extracting Data

=IF(ISERROR(SEARCH("upc",B5)),"",MID(B5,SEARCH("up c#",B5),LEN(B5)))

OR

=IF(ISERROR(SEARCH("upc",B5)),"",MID(B5,SEARCH("up c#",B5)+4,LEN(B5)))

If this post helps click Yes
---------------
Jacob Skaria


"klafert" wrote:

This is the formula I used and I get a Value Error

=IF(ISERROR(SEARCH("upc",b5)),"",MID(b5,SEARCH("up c",b5),FIND("
",b5,SEARCH("upc",b5)-1)))


"Don Guillett" wrote:

=IF(ISERROR(SEARCH("upc",H2)),"",MID(H2,SEARCH("up c",H2),FIND("
",H2,SEARCH("upc",H2)-1)))

--
Don Guillett
Microsoft MVP Excel
SalesAid Software

"klafert" wrote in message
...
I was using the formula, which worked but I only want the UPC Code #
extracted not the whole column - thanks

"Don Guillett" wrote:

datafilterautofilterfilter on column desiredcustomcontainsupc
voila
or a looping macro using if INSTR
or a formula
=IF(ISERROR(SEARCH("upc",H2)),"",H2)

--
Don Guillett
Microsoft MVP Excel
SalesAid Software

"klafert" wrote in message
...
I have a spreadsheet with 390 rows. In one column I have data such as
this:


6" MARGINATA UPC#200653

Some of the lines have UPC# and some don't. The ones that do I would
like
to extract out to another column. Thanks for any help!!!





  #9   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 5,934
Default Extracting Data

Give this formula a try...

=MID(A1,SEARCH("UPC",A1&"UPC"),99)

--
Rick (MVP - Excel)


"klafert" wrote in message
...
I have a spreadsheet with 390 rows. In one column I have data such as
this:


6" MARGINATA UPC#200653

Some of the lines have UPC# and some don't. The ones that do I would like
to extract out to another column. Thanks for any help!!!


  #10   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 5,934
Default Extracting Data

I should explain... my formula assume the UPC number is always located at
the end of the text.

--
Rick (MVP - Excel)


"Rick Rothstein" wrote in message
...
Give this formula a try...

=MID(A1,SEARCH("UPC",A1&"UPC"),99)

--
Rick (MVP - Excel)


"klafert" wrote in message
...
I have a spreadsheet with 390 rows. In one column I have data such as
this:


6" MARGINATA UPC#200653

Some of the lines have UPC# and some don't. The ones that do I would
like
to extract out to another column. Thanks for any help!!!



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
extracting data from one sheet based on data in another - VLookup? des Excel Worksheet Functions 3 February 4th 09 07:27 PM
Need help extracting data CB Excel Worksheet Functions 0 November 5th 08 04:13 PM
Extracting data amir2000 Excel Worksheet Functions 3 July 7th 08 12:14 PM
Need help extracting data A.S. Excel Discussion (Misc queries) 6 September 6th 06 11:18 PM
Extracting Data for .Txt Files By Unique Field Data La Excel Discussion (Misc queries) 3 July 17th 06 01:30 PM


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