Hello All In sheet 1 I have the following
[TABLE="width: 500"]
<tbody>[TR]
[TD]HELPER 2[/TD]
[TD]FIRST NAME[/TD]
[TD]HELPER 1[/TD]
[TD]LAST NAME[/TD]
[TD]LAST, FIRST[/TD]
[/TR]
[TR]
[TD]1[/TD]
[TD]BILLY
[/TD]
[TD]6[/TD]
[TD]SMITH[/TD]
[TD]SMITH, BILLY[/TD]
[/TR]
[TR]
[TD]8[/TD]
[TD]ZEE[/TD]
[TD]7[/TD]
[TD]WORD[/TD]
[TD]WORD, TONY[/TD]
[/TR]
[TR]
[TD]7[/TD]
[TD]WILL[/TD]
[TD]2[/TD]
[TD]HAYES[/TD]
[TD]HAYES, WILL[/TD]
[/TR]
[TR]
[TD]3[/TD]
[TD]PAUL[/TD]
[TD]3[/TD]
[TD]MORRIS[/TD]
[TD]MORRIS, PAUL[/TD]
[/TR]
[TR]
[TD]6[/TD]
[TD]TAMMY[/TD]
[TD]7[/TD]
[TD]WORD[/TD]
[TD]WORD, ZEE[/TD]
[/TR]
[TR]
[TD]5[/TD]
[TD]TIM[/TD]
[TD]4[/TD]
[TD]PARKER[/TD]
[TD]PARKER, TIM[/TD]
[/TR]
[TR]
[TD]2[/TD]
[TD]JACK[/TD]
[TD]5[/TD]
[TD]PRICE[/TD]
[TD]PRICE, JACK[/TD]
[/TR]
[TR]
[TD]4[/TD]
[TD]RANDY[/TD]
[TD]1[/TD]
[TD]CALVIN[/TD]
[TD]CALVIN, RANDY[/TD]
[/TR]
</tbody>[/TABLE]
Where Column A =IF(ISBLANK(B2),"",COUNTIF($B$2:$B$7,"<="&$B2))
Column C =IF(ISBLANK(D2),"",COUNTIF($D$2:$D$7,"<="&$D2))
Column E = Concentrate formula
In another sheet Cell A2 I have the Following
this pulls and Sorts all Concentrate name based on last name in alphabetical order. My problems arise when there are two of the same last name.
Is there a way to add a function to above code where if there are duplicate last name to then check the first name of the duplicate and then sort alphabetical with last then first name.
Any suggestions would be greatly appreciated
Thanks
[TABLE="width: 500"]
<tbody>[TR]
[TD]HELPER 2[/TD]
[TD]FIRST NAME[/TD]
[TD]HELPER 1[/TD]
[TD]LAST NAME[/TD]
[TD]LAST, FIRST[/TD]
[/TR]
[TR]
[TD]1[/TD]
[TD]BILLY
[/TD]
[TD]6[/TD]
[TD]SMITH[/TD]
[TD]SMITH, BILLY[/TD]
[/TR]
[TR]
[TD]8[/TD]
[TD]ZEE[/TD]
[TD]7[/TD]
[TD]WORD[/TD]
[TD]WORD, TONY[/TD]
[/TR]
[TR]
[TD]7[/TD]
[TD]WILL[/TD]
[TD]2[/TD]
[TD]HAYES[/TD]
[TD]HAYES, WILL[/TD]
[/TR]
[TR]
[TD]3[/TD]
[TD]PAUL[/TD]
[TD]3[/TD]
[TD]MORRIS[/TD]
[TD]MORRIS, PAUL[/TD]
[/TR]
[TR]
[TD]6[/TD]
[TD]TAMMY[/TD]
[TD]7[/TD]
[TD]WORD[/TD]
[TD]WORD, ZEE[/TD]
[/TR]
[TR]
[TD]5[/TD]
[TD]TIM[/TD]
[TD]4[/TD]
[TD]PARKER[/TD]
[TD]PARKER, TIM[/TD]
[/TR]
[TR]
[TD]2[/TD]
[TD]JACK[/TD]
[TD]5[/TD]
[TD]PRICE[/TD]
[TD]PRICE, JACK[/TD]
[/TR]
[TR]
[TD]4[/TD]
[TD]RANDY[/TD]
[TD]1[/TD]
[TD]CALVIN[/TD]
[TD]CALVIN, RANDY[/TD]
[/TR]
</tbody>[/TABLE]
Where Column A =IF(ISBLANK(B2),"",COUNTIF($B$2:$B$7,"<="&$B2))
Column C =IF(ISBLANK(D2),"",COUNTIF($D$2:$D$7,"<="&$D2))
Column E = Concentrate formula
In another sheet Cell A2 I have the Following
Code:
=IFERROR(INDEX('Sheet1'!$E$2:$E$1000,MATCH(AGGREGATE(15,6,'Sheet1'!$D$2:$D$8,ROW(A1)),'Sheet1'!$D$2:$D$8,0)),"")
this pulls and Sorts all Concentrate name based on last name in alphabetical order. My problems arise when there are two of the same last name.
Is there a way to add a function to above code where if there are duplicate last name to then check the first name of the duplicate and then sort alphabetical with last then first name.
Any suggestions would be greatly appreciated
Thanks