Share via

If Function Question

Anonymous
2016-11-06T03:27:29+00:00

I had it earlier and made a change and screwed up the formula, now nothing I use is working

I need cell E27 to display a value based on the entry to Cell E25.

E25 has a drop down to choose either 'yes' or 'no'

If E25 has the drop down chosen as 'no' I need E27 to display '0'

If E25 has the drop down chosen as 'yes' I need E27 to display the value created by F27/G27.

If it matters, F27 is the sum of several cells from column f, G27 is the same (sum of cells in G)

How do I make this happen? I hope the above is clear, if not please let me know what additional info I can provide.

Microsoft 365 and Office | Excel | For home | Windows

Locked Question. This question was migrated from the Microsoft Support Community. You can vote on whether it's helpful, but you can't add comments or replies or follow the question.

0 comments No comments

Answer accepted by question author

Anonymous
2016-11-06T06:25:51+00:00

Though you have set your drop down list as "Yes" or "No", then you can use the below simple formula:

In E27:

=IFERROR(IF(E25="no",0,F27/G27),"")

in F27 to calculate several cells, try the below formula:

=SUM(single_cell1,single_cell2,.......,cell_range1,cell_range2,....)

in G27 to calculate the G column, try below formula:

=SUM(G:G)

Was this answer helpful?

0 comments No comments

Answer accepted by question author

Anonymous
2016-11-06T05:04:12+00:00

Try below formula:

=IF(E25="no",0,IF(E25="yes",F27/G27,""))

If E25 is "no", formula returns zero;

If E25 is "yes", formula returns F27/G27;

For any other value in E25, formula returns a blank;

Regards,

Amit Tandon

Was this answer helpful?

0 comments No comments

0 additional answers

Sort by: Most helpful