Forum Discussion

Specialk0330's avatar
Specialk0330
Copper Contributor
Oct 30, 2023

Copy a formula horiztonally (Row 1") that references text in only one column "Column A"

I have an excel sheet with text in Column A.   I have a formula that I need to copy and paste on the first row (D1, F1, H1, J1, L1...) the formula references text only in column A (A1, A2, A3, A4, A5...).  How can I do this?  Thank you!

9 Replies

  • Specialk0330 

    A 365 solution that avoids traditional spreadsheet techniques.

    = TOROW(HSTACK(list, IF(LEN(list)>0, "")))

     

    Note that E1 is part of the formula result and cannot be used to enter data.

    • Specialk0330's avatar
      Specialk0330
      Copper Contributor
      Thank you! Where would I place the above formula in my forumula? Do I replace A1? This is my formula:
      D1=@BDH(A1,"SALES_REV_TURN", "-40ay","","per=Q","cols=2;rows=32")
      F1=@BDH(A2,"SALES_REV_TURN", "-40ay","","per=Q","cols=2;rows=32")
      • PeterBartholomew1's avatar
        PeterBartholomew1
        Silver Contributor

        SergeiBaklan 

        An interesting formula in that it doesn't generate a spill error, but it was my intention to insert blank cells not remove them!

    • Specialk0330's avatar
      Specialk0330
      Copper Contributor
      Thank you! I will have to try these formulas to see if I get the same results.
      Where would I place the above formula in my forumula? Do I replace A1? This is my formula:
      D1=@BDH(A1,"SALES_REV_TURN", "-40ay","","per=Q","cols=2;rows=32")
      F1=@BDH(A2,"SALES_REV_TURN", "-40ay","","per=Q","cols=2;rows=32")
  • Specialk0330 

     

    Kindly use Absolute Reference ($A$1).

    PFB Example

     

    Please consider giving it a 'thumbs up' if it was helpful for you. You can also show your support by subscribing to my YouTube channel, @Excelonlineadvisor, and following me on Instagram, @Excelonlineadvisor.

    • Specialk0330's avatar
      Specialk0330
      Copper Contributor
      Thank you. Unfortunately Absolute Reference ($A$1) did not work. A1 appear in each cell instead of A1, A2, A3...

Resources