IF FUNC with multiple non-specific criteria?

jandtng

New Member
Joined
Apr 17, 2024
Messages
16
Office Version
  1. 365
Platform
  1. Windows
Ok I'm stump on this one. I'm trying to figure out a formula to give me a "No" or leave the cell blank in the yellow column.
If B1 is blank and C1 have any text/numbers, then D1 is "No".
If B2 have any text/numbers and C2 have any text/numbers, then leave D2 blank.
Unless I have a specific text or numbers in column B or C, the If function can't work. I tried using the asterisk in place of the text/numbers but it didn't work. TIA

1716048610127.png
 

Excel Facts

Select all contiguous cells
Pressing Ctrl+* (asterisk) will select the "current region" - all contiguous cells in all directions.
Something like this (provided that you are only interested in cols B and C):

Excel Formula:
=IF(SUM(--(ISBLANK(B1:C1)))>0,"No","")
?
 
Upvote 1
Hello - try these, on the first formula;

=IF(B1="",""&IF(ISTEXT(C1), "No", ""),"")

With the second formula I have put a second condition just in case B2 and C2 are both blank with ab N/A;

=IF(ISTEXT(B2),"",IF(ISTEXT(C2),"","N/A")
 
Upvote 1
Ok I'm stump on this one. I'm trying to figure out a formula to give me a "No" or leave the cell blank in the yellow column.
If B1 is blank and C1 have any text/numbers, then D1 is "No".
If B2 have any text/numbers and C2 have any text/numbers, then leave D2 blank.
Unless I have a specific text or numbers in column B or C, the If function can't work. I tried using the asterisk in place of the text/numbers but it didn't work. TIA

View attachment 111602
What about when you have something in B but not C? What do you want to return in this case?
 
Upvote 0
If there is somthing in B but not C, the return should be a blank cell
Try this. I've included an array option in column E.
Book1
ABCDE
1Any TextAny TextNoNo
2Any TextAny TextAny Text 
3Any TextAny Text 
Sheet9
Cell Formulas
RangeFormula
E1:E3E1=IF((B1:B3="")*(C1:C3<>""),"No","")
D1:D3D1=IF((B1="")*(C1<>""),"No","")
Dynamic array formulas.
 
Upvote 1
Solution
Something like this (provided that you are only interested in cols B and C):

Excel Formula:
=IF(SUM(--(ISBLANK(B1:C1)))>0,"No","")
?
This partially worked.
When there is something in B and nothing in C, the return should be a blank cell
When there are something in both B and C, the return should be a blank cell

Something like this (provided that you are only interested in cols B and C):

Excel Formula:
=IF(SUM(--(ISBLANK(B1:C1)))>0,"No","")
?
 
Upvote 0
Try this. I've included an array option in column E.
Book1
ABCDE
1Any TextAny TextNoNo
2Any TextAny TextAny Text 
3Any TextAny Text 
Sheet9
Cell Formulas
RangeFormula
E1:E3E1=IF((B1:B3="")*(C1:C3<>""),"No","")
D1:D3D1=IF((B1="")*(C1<>""),"No","")
Dynamic array formulas.
Thank you!!! You are awesome, that formula works!!! What a great group this is. I'm learning so much!!!
 
Upvote 0

Forum statistics

Threads
1,223,893
Messages
6,175,248
Members
452,623
Latest member
cliftonhandyman

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
Back
Top