Data Extraction

kupadhyay

New Member
Joined
Jun 24, 2008
Messages
6
Hello,

I am a novice at Excel, so sorry guys.

I wish to extract data from an existing File.
Column A contains a list of 10 digit random numbers (beginning with standard set of numbers). There are 10 such sets.
For eg:
1234567899 (here 12345 is a set)
1234588796 (here 12345 is a set)
5432199876 (here 54321 is a set)
5432187458 (here 54321 is a set) and so on...

Column B also contains random repeated numbers.
The two columns are independent set of numbers and do not share anything in common.

This is what I want to do and struggling with:
1. From Column A, I want to extract set of numbers which are beginning with a particular set and count them (eg nos beginning with 12345 and so on)
2. I want to count the number of times, a particular random number was repeated in column B.

Please help...would appreciate a lot...if I have not explained it right, please forgive and allow me to better it...
 

Excel Facts

When did Power Query debut in Excel?
Although it was an add-in in Excel 2010 & Excel 2013, Power Query became a part of Excel in 2016, in Data, Get & Transform Data.

Jonmo1

MrExcel MVP
Joined
Oct 12, 2006
Messages
44,061
Welcome to the board...

Try these...

1.
=SUMPRODUCT(--(LEFT(A1:A10,5)="12345"))

2.
=COUNTIF(B1:B10,randomnumber)

Hope this helps..
 
Upvote 0

Domski

Well-known Member
Joined
Jan 18, 2005
Messages
7,292
Something like:<SCRIPT language=JavaScript src="http://www.interq.or.jp/sun/puremis...NGE][/XH][/XR][/RANGE] Hope it helps, Dom
 
Upvote 0

kupadhyay

New Member
Joined
Jun 24, 2008
Messages
6
Many Thanks!!

I got the count of numbers beginning with a set for column A. However, I also need to extract the data of that set on another column.

Please help the same on that too....again I appreciate...
 
Upvote 0

Forum statistics

Threads
1,191,183
Messages
5,985,172
Members
439,944
Latest member
Vangelis74

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
Top