H
Hardy
Well, that's the best way I can describe it.
I have worksheet A of data in Excel, c. 1000 rows. Col A has unique
identifier for each row. Col B has categories ( 5 different ones).
What I want to do in another sheet (B) is essentially replicate what I
would do with the Auto filter function, i.e. show just those rows that
have 'Sovereigns' in Col B (refering to sovereing bonds), but not use
autofilter and also show data in one continuous block.
I think I am half way there in terms of thinking it out. In the other
worksheet B, you can use COUNTIF to determine the number of occurances
of 'Sovereign' in Col B. Then in the first row in worksheet, you can
have formula that could find the first occurance of sovereign in col B
(returning row number or unique identifier via INDIRECT function), then
row two would return the second occurence... right up to the number of
occurances of sovereign. I don't think I can use MATCH because what I
am looking for is not unique. Rather, I want to say find me the ith
occurance of it, where i is variable. Also, I cannot sort Col B
because I will have several worksheets doing the same thing for
different categories.
In databases you do it all the time via queries. Thing is I need to
perform complex calculations and sort the data in excel before I send
it to datbase program.
Grateful for any thoughts to fill in the gaps, or for someone to tell
me not to make life complicated and write macro code to do this.
I have worksheet A of data in Excel, c. 1000 rows. Col A has unique
identifier for each row. Col B has categories ( 5 different ones).
What I want to do in another sheet (B) is essentially replicate what I
would do with the Auto filter function, i.e. show just those rows that
have 'Sovereigns' in Col B (refering to sovereing bonds), but not use
autofilter and also show data in one continuous block.
I think I am half way there in terms of thinking it out. In the other
worksheet B, you can use COUNTIF to determine the number of occurances
of 'Sovereign' in Col B. Then in the first row in worksheet, you can
have formula that could find the first occurance of sovereign in col B
(returning row number or unique identifier via INDIRECT function), then
row two would return the second occurence... right up to the number of
occurances of sovereign. I don't think I can use MATCH because what I
am looking for is not unique. Rather, I want to say find me the ith
occurance of it, where i is variable. Also, I cannot sort Col B
because I will have several worksheets doing the same thing for
different categories.
In databases you do it all the time via queries. Thing is I need to
perform complex calculations and sort the data in excel before I send
it to datbase program.
Grateful for any thoughts to fill in the gaps, or for someone to tell
me not to make life complicated and write macro code to do this.
