Forum Discussion

iapetustitan's avatar
iapetustitan
Copper Contributor
Nov 13, 2020
Solved

Can anyone sense check my formula? Copying cells between sheets

Hi.  I've got this formula to copy cell contents into another sheet on the same workbook: =IFERROR(INDEX('Sheet1'!$D:$D, TEXT(IF('Sheet1'!$C:$C="Yes",ROW('Sheet1'!$C;$C)),ROW())),"")   Now I'm on...
  • SergeiBaklan's avatar
    SergeiBaklan
    Nov 15, 2020

    iapetustitan Thanks for the clarification. Not sure I fully understood the logic, but I'd suggest

    in second column

    =IFERROR(
         INDEX(
           Area_Running_Totals[Order Code],
           AGGREGATE(15,6,
                 1/(Area_Running_Totals[[Add To Order?]:[Add To Order?]]="Yes")*
                 (ROW(Area_Running_Totals[Add To Order?])-ROW(Area_Running_Totals[[#Headers],[Add To Order?]])),
                 (ROW()-ROW(OrderForm[[#Headers],[Supplier Product Code]]))
           )
    ),"")

    and similar to the right.

Resources