Forum Discussion

Galaxy_Admin's avatar
Galaxy_Admin
Copper Contributor
Oct 18, 2022

Trying to remember a function to add a row below if the row above has data

Working on creating a massive calculation spreadsheet (75 sheets). The only formula we are missing is the one where if there is data on the line above, the final sheet will automatically add a row below.

 

example:

 

Cell A6 = (sheet 16 A16)

Add a row below

 Yes, I realize that is not proper formula notation. Yes, I realize this sounds a lot harder than it really it is. Yes, I realize I am probably not using the right terms to figure out what I want. 

 

Let me try it this way -

 

If row 6 is occupied (has data), information is automatically added to row 7. All information is being pulled from other sheets in the workbook.

 

I know there is an IF in the function, but cannot remember (or find) the remaining part of the formula.

 

Please help.

  • mathetes's avatar
    mathetes
    Silver Contributor

    Galaxy_Admin 

     

    in row 7, whatever cell -- let's say C7

    =IF(C6<>"",source,"")

     

    but that's assuming I'm understanding what you want, what you described. That formula will only do C7, however. If you want all the cells on row 7 to fill with whatever, you need to write similar formulas in each cell; it might be possible to construct it in a way that would enable copying the same formula across. You will need to give us a better idea of the "big picture"

    • Galaxy_Admin's avatar
      Galaxy_Admin
      Copper Contributor

      Thank you mathetes . I believe the formula is a lot more complicated than that. I will be working on it more today, and if I figure it out, I will definitely post it.

       

      More along the lines of =(sheet:B6 = TRUE, (A6), FALSE), IF row2=true, DATA=row3)

       

      I know that is not accurate either, but closer to what I am trying to achieve....

      • mathetes's avatar
        mathetes
        Silver Contributor

        Galaxy_Admin 

        I believe the formula is a lot more complicated than that. I will be working on it more today, and if I figure it out, I will definitely post it.

         

        More along the lines of =(sheet:B6 = TRUE, (A6), FALSE), IF row2=true, DATA=row3)

         

        I know that is not accurate either, but closer to what I am trying to achieve....

         

        Might I suggest that you start with a clear statement in words of what it is you're hoping to accomplish.

         

        So far your words themselves (as well as the attempts at formulas) have been confusing.  

        • For example, is it actually the fact that sheet(whatever),cell B6 will simply contain TRUE (or 1)?
        • It certainly can't be the case that row2 will ever be TRUE. Rows, as such, don't contain values; they contain cells and the cells contain values.

        Is it acceptable to ask you what the massive workbook is about, what the context or bigger picture is? I see by your user name that you are administering the galaxy itself, so can't help but wonder if it has something to do with the heavens..... Just curious. It's not common to see workbooks with 75 sheets in them.

Resources