Need help creating a combined list from values in two ranges. All non-blank items in list 1 should be included before adding the non-blank items in list 2. The headings between and after these lists should not be included in the resulting list. The challenge I'm having is that I don't know which cells will be blank and which ones wont. The values will always be in range B2:B5 and B8:B13 but I don't know how many items will be populated and whether there will be blanks in between.
I've made a start of it but keep getting stuck. Here is my example for column E:
=IFERROR(IF(B2<>"",B2,OFFSET($B$8,0,0,COUNTA($B$8:$B$13),0)),"") and then copying the formula down column E. This gets some of the right results but not all. Since it doesn't work I haven't gotten to the next element of complexity as shown in the next image down.
To make it more complicated, for List 2 items (B8:B13), if D6 = "Yes" (Use alternate value) then the sheet is to find the corresponding non-blank value for the item in List 2 from range C8:C13. Not all cells in List 2 will have alternate values from C8:C13 but all values from Alternate Value (C8:C13) range will have a corresponding non-blank value in List 2. As an example, if cell $D$6="Yes", B8 is not "" and C8 is not "" then use value of C8. But if $D$6="Yes", B8 is not "", but C8 is blank then use value in B8. This example is shown in the image below. If there is a value in the Alternate Value range C8:C13 that does not have a corresponding value in B8:B13, then it should be ignored such as shown in C13.
Any help would be most appreciated.
I've made a start of it but keep getting stuck. Here is my example for column E:
=IFERROR(IF(B2<>"",B2,OFFSET($B$8,0,0,COUNTA($B$8:$B$13),0)),"") and then copying the formula down column E. This gets some of the right results but not all. Since it doesn't work I haven't gotten to the next element of complexity as shown in the next image down.
To make it more complicated, for List 2 items (B8:B13), if D6 = "Yes" (Use alternate value) then the sheet is to find the corresponding non-blank value for the item in List 2 from range C8:C13. Not all cells in List 2 will have alternate values from C8:C13 but all values from Alternate Value (C8:C13) range will have a corresponding non-blank value in List 2. As an example, if cell $D$6="Yes", B8 is not "" and C8 is not "" then use value of C8. But if $D$6="Yes", B8 is not "", but C8 is blank then use value in B8. This example is shown in the image below. If there is a value in the Alternate Value range C8:C13 that does not have a corresponding value in B8:B13, then it should be ignored such as shown in C13.
Any help would be most appreciated.