Forum Discussion

Joa14's avatar
Joa14
Copper Contributor
Jun 27, 2023
Solved

Help: Formula multiple sheets and columns

Hi, I need help finding a formula. Have tried different ones it sends me an error (SPILL). Sheet One I have four columns, all integer values. Column A has Plots, Column B has Temp1, Column C has Tem...
  • Riny_van_Eekelen's avatar
    Jun 28, 2023

    Joa14 OK, that's because you are referencing the entire column A. Excel then tries to return the if_true and if_false values for all 1 million+ rows in the sheet. Enter such a formula anywhere else than on the first row and you will indeed get #SPILL! without the dotted lines.

     

    (By the way, why do you have "P3"? That will return the text P# when A does not contain 1. Remove the "" if you intend to return the value of cell P3.)

     

    So move it to row 1 in the column where you have the formula now and change it to:

    =IF($A:$A,$O1,P1)

     

    You'll get a #VALUE! error for the first element and it will probably not give you the result you expect.

     

    You need to limit the range from column $A:$A to, for example A$$2:$A$100. Can't tell if that will give the correct answers either. Up to you. You need to share the file (upload to Onedrive or similar and post the link here) if you can't upload it to the forum directly. And show what the expected results are.

     

     

     

     

Resources