Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.misc
|
|||
|
|||
Sorting
I have one column with data but some rows are blank. Is is possible to set up
function like "advanced sort" where the data from the column that isnt blank is copied to another column then sorted, but so that if any items are altered in the first column the second column automatically updates itself without the need to run a sort again? Hope that makes sense! |
#2
Posted to microsoft.public.excel.misc
|
|||
|
|||
Sorting
What kind of values do you want to sort ? Numbers ? text ?
-- Festina Lente "Newbeetle" wrote: I have one column with data but some rows are blank. Is is possible to set up function like "advanced sort" where the data from the column that isnt blank is copied to another column then sorted, but so that if any items are altered in the first column the second column automatically updates itself without the need to run a sort again? Hope that makes sense! |
#3
Posted to microsoft.public.excel.misc
|
|||
|
|||
Sorting
Hi after going through a lot of postings I found this below and it works a
treat for numbers, but I wanted to do the same with part letter, part number as the data I wish to sort is in this sequence A1, A2 etc then on to B1, B2 etc =SMALL($B$1:$B$51,ROW()) "PapaDos" wrote: What kind of values do you want to sort ? Numbers ? text ? -- Festina Lente "Newbeetle" wrote: I have one column with data but some rows are blank. Is is possible to set up function like "advanced sort" where the data from the column that isnt blank is copied to another column then sorted, but so that if any items are altered in the first column the second column automatically updates itself without the need to run a sort again? Hope that makes sense! |
#4
Posted to microsoft.public.excel.misc
|
|||
|
|||
Sorting
Are the values you need to sort unique, without any repetition ?
-- Festina Lente "Newbeetle" wrote: Hi after going through a lot of postings I found this below and it works a treat for numbers, but I wanted to do the same with part letter, part number as the data I wish to sort is in this sequence A1, A2 etc then on to B1, B2 etc =SMALL($B$1:$B$51,ROW()) "PapaDos" wrote: What kind of values do you want to sort ? Numbers ? text ? -- Festina Lente "Newbeetle" wrote: I have one column with data but some rows are blank. Is is possible to set up function like "advanced sort" where the data from the column that isnt blank is copied to another column then sorted, but so that if any items are altered in the first column the second column automatically updates itself without the need to run a sort again? Hope that makes sense! |
#5
Posted to microsoft.public.excel.misc
|
|||
|
|||
Sorting
Yes
"PapaDos" wrote: Are the values you need to sort unique, without any repetition ? -- Festina Lente "Newbeetle" wrote: Hi after going through a lot of postings I found this below and it works a treat for numbers, but I wanted to do the same with part letter, part number as the data I wish to sort is in this sequence A1, A2 etc then on to B1, B2 etc =SMALL($B$1:$B$51,ROW()) "PapaDos" wrote: What kind of values do you want to sort ? Numbers ? text ? -- Festina Lente "Newbeetle" wrote: I have one column with data but some rows are blank. Is is possible to set up function like "advanced sort" where the data from the column that isnt blank is copied to another column then sorted, but so that if any items are altered in the first column the second column automatically updates itself without the need to run a sort again? Hope that makes sense! |
#6
Posted to microsoft.public.excel.misc
|
|||
|
|||
Sorting
Lets say your column to sort is "range_to_sort" and the first cell of the
sorted results is "sorted_table_anchor", then this array formula (Ctrl+Shift+Enter) should give you the sorted table: =IF(ISNA(MATCH(ROW() - ROW(sorted_table_anchor), IF(ISBLANK(range_to_sort), "", COUNTIF(range_to_sort, "<" & range_to_sort)), 0)), IF(ROW(sorted_table_anchor) + COUNTA(range_to_sort) - ROW() 0, "DUPLICATE", ""), INDEX(range_to_sort, MATCH(ROW() - ROW(sorted_table_anchor), IF(ISBLANK(range_to_sort), "", COUNTIF(range_to_sort, "<" & range_to_sort)), 0))) -- Festina Lente "Newbeetle" wrote: Yes "PapaDos" wrote: Are the values you need to sort unique, without any repetition ? -- Festina Lente "Newbeetle" wrote: Hi after going through a lot of postings I found this below and it works a treat for numbers, but I wanted to do the same with part letter, part number as the data I wish to sort is in this sequence A1, A2 etc then on to B1, B2 etc =SMALL($B$1:$B$51,ROW()) "PapaDos" wrote: What kind of values do you want to sort ? Numbers ? text ? -- Festina Lente "Newbeetle" wrote: I have one column with data but some rows are blank. Is is possible to set up function like "advanced sort" where the data from the column that isnt blank is copied to another column then sorted, but so that if any items are altered in the first column the second column automatically updates itself without the need to run a sort again? Hope that makes sense! |
#7
Posted to microsoft.public.excel.misc
|
|||
|
|||
Sorting
Thank you, I've give that a go. "PapaDos" wrote: Lets say your column to sort is "range_to_sort" and the first cell of the sorted results is "sorted_table_anchor", then this array formula (Ctrl+Shift+Enter) should give you the sorted table: =IF(ISNA(MATCH(ROW() - ROW(sorted_table_anchor), IF(ISBLANK(range_to_sort), "", COUNTIF(range_to_sort, "<" & range_to_sort)), 0)), IF(ROW(sorted_table_anchor) + COUNTA(range_to_sort) - ROW() 0, "DUPLICATE", ""), INDEX(range_to_sort, MATCH(ROW() - ROW(sorted_table_anchor), IF(ISBLANK(range_to_sort), "", COUNTIF(range_to_sort, "<" & range_to_sort)), 0))) -- Festina Lente "Newbeetle" wrote: Yes "PapaDos" wrote: Are the values you need to sort unique, without any repetition ? -- Festina Lente "Newbeetle" wrote: Hi after going through a lot of postings I found this below and it works a treat for numbers, but I wanted to do the same with part letter, part number as the data I wish to sort is in this sequence A1, A2 etc then on to B1, B2 etc =SMALL($B$1:$B$51,ROW()) "PapaDos" wrote: What kind of values do you want to sort ? Numbers ? text ? -- Festina Lente "Newbeetle" wrote: I have one column with data but some rows are blank. Is is possible to set up function like "advanced sort" where the data from the column that isnt blank is copied to another column then sorted, but so that if any items are altered in the first column the second column automatically updates itself without the need to run a sort again? Hope that makes sense! |
#8
Posted to microsoft.public.excel.misc
|
|||
|
|||
Sorting
Bienvenue !
The present formula will only give you one sorted column. Let me know if you need help modifying it... -- Festina Lente "Newbeetle" wrote: Thank you, I've give that a go. "PapaDos" wrote: Lets say your column to sort is "range_to_sort" and the first cell of the sorted results is "sorted_table_anchor", then this array formula (Ctrl+Shift+Enter) should give you the sorted table: =IF(ISNA(MATCH(ROW() - ROW(sorted_table_anchor), IF(ISBLANK(range_to_sort), "", COUNTIF(range_to_sort, "<" & range_to_sort)), 0)), IF(ROW(sorted_table_anchor) + COUNTA(range_to_sort) - ROW() 0, "DUPLICATE", ""), INDEX(range_to_sort, MATCH(ROW() - ROW(sorted_table_anchor), IF(ISBLANK(range_to_sort), "", COUNTIF(range_to_sort, "<" & range_to_sort)), 0))) -- Festina Lente "Newbeetle" wrote: Yes "PapaDos" wrote: Are the values you need to sort unique, without any repetition ? -- Festina Lente "Newbeetle" wrote: Hi after going through a lot of postings I found this below and it works a treat for numbers, but I wanted to do the same with part letter, part number as the data I wish to sort is in this sequence A1, A2 etc then on to B1, B2 etc =SMALL($B$1:$B$51,ROW()) "PapaDos" wrote: What kind of values do you want to sort ? Numbers ? text ? -- Festina Lente "Newbeetle" wrote: I have one column with data but some rows are blank. Is is possible to set up function like "advanced sort" where the data from the column that isnt blank is copied to another column then sorted, but so that if any items are altered in the first column the second column automatically updates itself without the need to run a sort again? Hope that makes sense! |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Maintaining cell reference after sorting | Excel Discussion (Misc queries) | |||
Sorting Sorting Sorting | Excel Discussion (Misc queries) | |||
Sorting | New Users to Excel | |||
Advice sought: Multiple column sorting | Excel Worksheet Functions | |||
sorting number in ascending order | Excel Discussion (Misc queries) |