Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
SMD SMD is offline
external usenet poster
 
Posts: 6
Default Extracting data from Excel

In column A2 I have this number 91-109002-000-A. In column G, I have several
109002 -000. I want to be able to compare A2 to all of G and if the
number is similar (what I call the base number), then I need for the formula
to look at column H and extract that information. So there may be more than
one answer for my extraction. Example:
(A) (G) (H)
Extraction would read
(2) 91-109002-000-A 109002-000 350574 350574,350575,643225
109002-000 350575
109002-000 643225
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 10,124
Default Extracting data from Excel

Sub getpartialdata()
mn = "109002-000"
For Each c In Range("g1:g3")
If InStr(c, mn) Then
ms = ms & " " & c.Offset(, 1)
End If
Next
MsgBox ms
'range("i2")=ms'??
End Sub

--
Don Guillett
Microsoft MVP Excel
SalesAid Software

"SMD" wrote in message
...
In column A2 I have this number 91-109002-000-A. In column G, I have
several
109002 -000. I want to be able to compare A2 to all of G and if the
number is similar (what I call the base number), then I need for the
formula
to look at column H and extract that information. So there may be more
than
one answer for my extraction. Example:
(A) (G) (H)
Extraction would read
(2) 91-109002-000-A 109002-000 350574
350574,350575,643225
109002-000 350575
109002-000 643225


  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
SMD SMD is offline
external usenet poster
 
Posts: 6
Default Extracting data from Excel

Don, Thanks for your quick reply. Column A2 will have many more numbers. I
was hoping to use a formula.

"Don Guillett" wrote:

Sub getpartialdata()
mn = "109002-000"
For Each c In Range("g1:g3")
If InStr(c, mn) Then
ms = ms & " " & c.Offset(, 1)
End If
Next
MsgBox ms
'range("i2")=ms'??
End Sub

--
Don Guillett
Microsoft MVP Excel
SalesAid Software

"SMD" wrote in message
...
In column A2 I have this number 91-109002-000-A. In column G, I have
several
109002 -000. I want to be able to compare A2 to all of G and if the
number is similar (what I call the base number), then I need for the
formula
to look at column H and extract that information. So there may be more
than
one answer for my extraction. Example:
(A) (G) (H)
Extraction would read
(2) 91-109002-000-A 109002-000 350574
350574,350575,643225
109002-000 350575
109002-000 643225



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 in Excel 2007 Jo Excel Discussion (Misc queries) 0 March 26th 09 02:31 AM
Extracting data from Outlook to Excel using VBA HBruno Excel Worksheet Functions 0 July 23rd 08 03:32 PM
Extracting Excel Data for Presentation Purposes mpallo Excel Discussion (Misc queries) 1 March 5th 08 01:53 PM
Extracting data from multiple excel files. helphelp Excel Discussion (Misc queries) 2 May 10th 06 09:45 PM
help extracting data from an excel sheet Tina Jones Excel Worksheet Functions 4 April 25th 05 01:18 AM


All times are GMT +1. The time now is 06:18 AM.

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

About Us

"It's about Microsoft Excel"