If One of 3 cells have an entry then the other cell responds

TPD

Board Regular
Joined
Dec 10, 2003
Messages
54
Hello,

I have a problem with a workbook that I really need a fix for.

I have a worksheet named "Screening Form" that contains 3 cells (C30,D30,E30) that may or may not be populated depending on the user's requirement.

In another worksheet named"SDI Discovery" I have a cell (J39)that I would like to either read, "YES" or "NO" based on the action of the other worksheet's 3 cells.

If ANY cell is filled in within those 3 cells in the Screening Form sheet then I want the cell J39 to read "YES",...and likewise if none of the cells in the Screening Form are filled in then I would like J39 to read "NO".

I can't get my hand around how this formula should read. I'm not well enough versed in Excel to write a formula.

(Logically here is what I'm trying to accomplish)

If EITHER one of the cells C30, D30, E30 have an entry,
Then J39 (located in the SDI Discovery Sheet) shall read YES.

If None of the cells C30, D30, E30 have an entry,
Then J39 (located in the SDI Discovery Sheet) shall read NO.
 

Excel Facts

Add Bullets to Range
Select range. Press Ctrl+1. On Number tab, choose Custom. Type Alt+7 then space then @ sign (using 7 on numeric keypad)

dave3009

Well-known Member
Joined
Jun 23, 2006
Messages
7,004
Office Version
  1. 365
  2. 2016
Hi Try this in J39 of SDI Dicovery

=IF('Screening Form'!C20:E20<>"", "YES", "NO")

HTH


Dave
 

Von Pookie

MrExcel MVP
Joined
Feb 17, 2002
Messages
13,686
You can use the COUNTBLANK function to determine how many cells contain data:

=IF(COUNTBLANK('Screening Form'!C30:E30)=3,"NO","YES")
 

NBVC

Well-known Member
Joined
Aug 31, 2005
Messages
5,828
Try this in J39

=If(COUNTA('Screening Form'!C30:D30),"YES","NO")
 

TPD

Board Regular
Joined
Dec 10, 2003
Messages
54
UNBELIEVABLE!!! All of you! Thanks so much!!!!!!!!

I have one other question,..but I will create a new post for it so that if it is answered,...others may be able to learn from it as well.

Thanks again!

Todd
 

Von Pookie

MrExcel MVP
Joined
Feb 17, 2002
Messages
13,686
Try this in J39

=If(COUNTA('Screening Form'!C30:D30),"YES","NO")

Just a note on this: COUNTA does count the number of cells that contain data, but it *also* counts cells that contain formulas (even if the formula result is displaying a "blank").
 

Forum statistics

Threads
1,136,597
Messages
5,676,719
Members
419,647
Latest member
usas12gthr

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Top