Report

Change text in cell if other cells have any values [Solved]

Ask a question C.J. Leffel - Last answered on Jul 15, 2016 01:13PM
Hello,

I am working on a spreadsheet where I have 5 important columns. Column B is the "Completed" category. Columns C, D, E & F will all contain values (mainly "Y" or "N") when their associated tasks are completed.

What I would like is a formula for B that will search the C, D, E & F columns in that same row for any values, and if all 4 cells on that row have any non-blank value, change the text in that row of column B to "Y" - if all other cells of that row are blank, the text in column B for that row should instead display "N".

Thank you very much for your time and interest! I've been trying to piece this one together on my own, but am having no luck, and need to get back to doing the maintenance this spreadsheet is being used to track - what I'm really looking to do here is eliminate superfluous mouse-clicks, since I have enough of those to do as it is.

Cheers,

C.J.
See more 
Helpful
+0
moins plus
I believe I have solved my own problem with the following:

=IF(OR(C2="",D2="",E2="",F2=""),"N",IF(OR(C2={"Y","N"},D2={"Y","N"},E2={"Y","N"},F2={"Y","N"}),"Y",""))
Ambucias 35239Posts Monday February 1, 2010Registration date ModeratorStatus December 8, 2016 Last seen - Jul 14, 2016 05:46PM
Thanks for letting us know!

Cheers!
Reply
C.J. Leffel- Jul 14, 2016 05:58PM
Happy to do so and share the information.

I got some help from a co-worker that got me going in the right direction, but the big final trick was realizing the order of execution was important, because with the {"Y","N"} section in front, it would mark column B with a "Y" if any of the four cells had a "Y" or a "N" in them.

By reversing the order so that the ="" section went first, it prioritizes those such that if ANY of the four cells are blank (regardless of the others), it defaults to "N" in column B, and only at such time that all four conditions are complete in the last section (all four cells having a "Y" or "N" value) will it change B to "Y".
Reply
Ambucias 35239Posts Monday February 1, 2010Registration date ModeratorStatus December 8, 2016 Last seen - Jul 14, 2016 06:10PM
Hello

From this forum to google you and you co-worker will help thousands. Very generous on your part. I would send you a cheque but I am as poor as a church mouse,
Reply
C.J. Leffel- Jul 15, 2016 01:13PM
Truly, my pleasure to help. I googled quite a lot for a solution, but nothing ever quite matched what I was looking to do... thankfully we have a few Excel wizards where I work and I was able to get a few minutes of time from one of them - I can but only hope this helps someone else :)
Reply
Add comment

Member requests are more likely to be responded to.

Members can monitor the statuses of their requests from their account pages.

A CCM membership gives you access to additional options.

Not a member yet?

Sign up now. It takes less than a minute and is completely free!