Home |
Search |
Today's Posts |
#2
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]() Excluding VB code: Copy columns A & B and, to a new sheet, Paste Special, Values In cell C2 the formula =IF(B11000,1000,IF(B1900,900,IF(B1800,800,IF(B1 700,700,IF(B1600,600,IF(B150,50,1)))))) and formula copy to the end of your data. Sort over column C descending, then B (for biggest on left, or A for alpabetical species within group) In cell D2 put =IF(C2=C1,"","sort") and formula copy down to the end of your data in cell E2 put =IF($C2=$C1,"",IF(INDIRECT("$C"&ROW()+COLUMN()-4)=$C2,INDIRECT("$A"&ROW()+COLUMN()-4),"")) and formula copy this as far right as required (a column for each possible species) then bulk-formula copy E2 to (say) Z2 down as far as your data goes. (save your sheet) Select all data (click the cell above A and left of 1) and Copy, PasteSpecial, Values back onto itsself. Sort over column D and delete any line that does not contain the word 'sort' Sort over column C descending. Obviously if you need to do this often you should look to some VB code, perhaps record a macro whilst doing the above to give a good start. Hope this helps -- Wrote: Here's what I have: An array of bird counts. 4 (yearly) sheets with bird counts. The first column is the list of species, the second column is the sum of the remaining columns, the successive columns are the counts for each species for that day. So, species,sum,number,number,number,... What I want to do, in a separate sheet, is to create a table of all the species that have totals within a range. Basically I want to end up with: 1000 900 800 700 600 50 species species species species species species species species species species species The above numbers are just an example. It would really be an added bonus if the lists of species in a range were sorted by their abundance. Any ideas as to how to go about this? -- Bryan Hessey ------------------------------------------------------------------------ Bryan Hessey's Profile: http://www.excelforum.com/member.php...o&userid=21059 View this thread: http://www.excelforum.com/showthread...hreadid=534778 |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
create an automatic complete list from existing data in the sheet | Excel Discussion (Misc queries) | |||
How do I create a List in Excel 2000 | Excel Worksheet Functions | |||
Trying to Create a Conditional Drop down list | Excel Worksheet Functions | |||
create a drop down list with the source from a different workbook | Excel Discussion (Misc queries) | |||
How do you create a drop down list? | Excel Discussion (Misc queries) |