Home > OS >  change output cell based on different cell's value
change output cell based on different cell's value

Time:06-06

I'm creating a spreadsheet about my paylog.

I want to have a sum where it tells me how much still needs to be payed out based on if the box next to it is y or n (y=payed out, n=payed out, which means go into the sum box)

view image here, it will help you understand it better

After viewing that, this should be the result.

What the output is meant to look like

CodePudding user response:

Based on that info then I would change up a few different things to avoid the circular dependency. For your total formula, I would use as SUMIF: =SUMIF(B:B,"n",C:C) That will only count the values in column c if column b is equal to "n". Next I would use conditional formatting to change the font color to white for all values in column c when column b is equal to "y". I've provided a demo sheet so you can view the results. This will allow you to have values in column c which will remove the circular dependency issue. Feel free to make a copy to be able to view the editable version.

Demo Sheet here

I'm sure there are many other ways to accomplish your goal but without more info...that is a direction I would go.

  • Related