Excel data extraction using VB

Andr3s

New Member
Joined
Jul 19, 2011
Messages
3
Buenas tardes

Dear friends
Im workin on a telecom company "Movistar" and my boss charged me a damned hard task
i have an Excel file "database" with this info

Date | Login | ANI | Status
01-07 T452236 5263 Ok
01-07 T452236 7896 Nok
01-07 T452236 1236 OK
01-07 T233325 5321 Nok
01-07 T233325 12 OK
01-07 T122363 1365 OK

i have an other sheet where i specify the Date and Login and i want make excel answer me with a list of ANIs the login (T452236) did in (01-07) As i know theres no way to make it using excel options (Formulas) so Plz i need a VB script to do it
Exp:
A1=T452236
B1=01-07
Answer:
A2=5263
A3=7896
A4=1236
A5=#NA ...
Sorry for my bad english ^^ i really need help :S or my boss gonna kick my ... THx ya all ``
 

Excel Facts

Lock one reference in a formula
Need 1 part of a formula to always point to the same range? use $ signs: $V$2:$Z$99 will always point to V2:Z99, even after copying
Welcome to the Board!

I'd look at a Pivot Table. The helpfile has some good documentation on them.
 
Upvote 0
You can automate Pivot Tables. There's no point in trying to recreate in code what a pivot table can do natively, so why not see if it gives you the result you expect before dismissing it?
 
Upvote 0
I tryed using Pivot tables But Date and Login has to be changed Manualy on the Table and not on the Sheet i created
and Pivot tables Values (Date & Login) Can not be tooken fron An other Sheet
 
Upvote 0

Forum statistics

Threads
1,224,583
Messages
6,179,682
Members
452,937
Latest member
Bhg1984

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top