Computing.Net > Forums > Office Software > Need help on Excel function

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

Need help on Excel function

Reply to Message Icon

Name: Green32
Date: April 15, 2009 at 11:44:01 Pacific
OS: Windows XP
Subcategory: General
Comment:

Is there a excel function that I can use to solve my problem? Help!

In sheet 1 I have the follow data:

Line No Amount MaturityDate
790 500 12/31/10
790 350 10/8/15
790 65 9/6/09
1230 135 6/30/11
3265 653 7/4/12

I want to pick all the data with line No. 790 from sheet 1 to sheet2. I know that I can use filter function and copy paste to sheet 2. But is there a function I can use in this scenario? Thanks!!



Sponsored Link
Ads by Google

Response Number 1
Name: DerbyDad03
Date: April 15, 2009 at 12:52:25 Pacific
Reply:

Is the data sorted just like your example or would the 790 be mixed in all over the place?

Is 790 the only number you are looking for or will you be puliing in data from the other numbers at various times?

Would you be willing to use a macro instead of an Excel function?


0

Response Number 2
Name: Green32
Date: April 15, 2009 at 18:33:20 Pacific
Reply:

The No.790 is in the Line No. column, and that is the only number that I'm looking for. If you can show me how to use macro in this scenario, that would be great. Thanks for your help!


0

Response Number 3
Name: DerbyDad03
Date: April 15, 2009 at 21:17:40 Pacific
Reply:

I guess that means that the answer to my first question is "No".

Maybe this will get you started:

Sub Copy790()
 For sht1Row = 1 To 1000
  If Sheets(1).Range("A" & sht1Row) = 790 Then
   sht2Row = sht2Row + 1
   Sheets(1).Range("A" & sht1Row).EntireRow.Copy _
      Destination:=Sheets(2).Range("A" & sht2Row)
  End If
 Next
End Sub


0

Response Number 4
Name: Green32
Date: April 16, 2009 at 10:59:03 Pacific
Reply:

It works! Thanks a lot DerbyDad03!


0

Sponsored Link
Ads by Google
Reply to Message Icon

Related Posts

See More







Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Office Software Forum Home


Sponsored links

Ads by Google


Results for: Need help on Excel function

I need Help on Excel www.computing.net/answers/office/i-need-help-on-excel/7837.html

Excel email www.computing.net/answers/office/excel-email/811.html

Select a date from a list of Date www.computing.net/answers/office/select-a-date-from-a-list-of-date/8214.html