Copy data from one sheet to another using a specific criterion

nadaraza

New Member
Joined
Jul 6, 2012
Messages
20
Hi Guys,

I'm looking to copy over information from a master list of data by specifcying a specific criteria.

For example: In the info below... there's a number of Index types. I would like the code to look at the range that is all of Column C (cell by cell) and look for "AS51", if its there then to copy over the rown that it found it in to a specified tab. Loop until blank.

Essentially it's just filtering the data into a different tab by the Index.

Help please. :)

Swap CodeCounterpartyIndexSpread (bps)DateReturn AgainstReference Rate% Spread
2046BNPAS51-801/31/2007CDOR03 Index4.35143-0.8
2046DEBAS51-201/31/2007CDOR03 Index4.35143-0.2
2046GSIAS5101/31/2007CDOR03 Index4.351430
2149BNPAS51-458/17/2007CDOR03 Index4.91143-0.45
2149CBCAS51-208/17/2007CDOR03 Index4.91143-0.2

<TBODY>
</TBODY><COLGROUP><COL><COL><COL><COL><COL><COL><COL><COL></COLGROUP>
 
Hey Aladin,

In you formula's... for B4 you say to input: =IF($A4="","",INDEX('Raw Data'!$B$2:$G$27,$A4,MATCH(B$3,'Raw Data'!$B$1:$G$1,0)))

its referencing a cell in B3 which is blank..... is there a value that's supposed to be in there?
 
Upvote 0

Excel Facts

How can you automate Excel?
Press Alt+F11 from Windows Excel to open the Visual Basic for Applications (VBA) editor.
Hey Aladin,

In you formula's... for B4 you say to input: =IF($A4="","",INDEX('Raw Data'!$B$2:$G$27,$A4,MATCH(B$3,'Raw Data'!$B$1:$G$1,0)))

its referencing a cell in B3 which is blank..... is there a value that's supposed to be in there?


Oops nevermind i got it, deleted the column headings by accident. Thx
 
Upvote 0
Hey Aladin,

In you formula's... for B4 you say to input: =IF($A4="","",INDEX('Raw Data'!$B$2:$G$27,$A4,MATCH(B$3,'Raw Data'!$B$1:$G$1,0)))

its referencing a cell in B3 which is blank..... is there a value that's supposed to be in there?

Oops nevermind i got it, deleted the column headings by accident. Thx

Great. Glad to hear that you sorted it out.
 
Upvote 0

Forum statistics

Threads
1,215,640
Messages
6,125,977
Members
449,276
Latest member
surendra75

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