Forum Discussion

Patty_M_2023's avatar
Patty_M_2023
Copper Contributor
Sep 19, 2023
Solved

Help with If, then formulas

If column a contains a date, then equal 100%, if not, then 0%, for a sheet that contains 30,000 lines. I keep getting a SPILL error

  • HansVogelaar's avatar
    HansVogelaar
    Sep 19, 2023

    Patty_M_2023 

    This formula will attempt to return 9 values to 9 cells: one for each cell in I2:I10.

     

    One option is to use

    =IF(I2>0, 100, 0)

    or a bit shorter

    =100*(I2>0)

    Then fill down.

     

    Or do you want to return 100 if ALL cells in I2:I10 are positive?

5 Replies

  • Patty_M_2023 

    What is the formula you're trying to use?

    It would help if you could attach a copy of the workbook without sensitive info, or make it available via OneDrive or Google Drive.

      • HansVogelaar's avatar
        HansVogelaar
        MVP

        Patty_M_2023 

        This formula will attempt to return 9 values to 9 cells: one for each cell in I2:I10.

         

        One option is to use

        =IF(I2>0, 100, 0)

        or a bit shorter

        =100*(I2>0)

        Then fill down.

         

        Or do you want to return 100 if ALL cells in I2:I10 are positive?

Resources