If multiple cells empty then value

clandestino800

New Member
Joined
Mar 14, 2021
Messages
19
Office Version
  1. 365
  2. 2016
Platform
  1. Windows
  2. MacOS
Hi all,

I’m trying to get a value C2 cell into A2. If C2 is empty, then check F2 and you if F2 is empty as well, i need the formula to return “not assigned”

I tried using IF(ISBLANK… and IF(AND(C2=“”..

The formula keeps returning “not assigned”

Please advise
Thanks 🙏
 

Excel Facts

Create a Pivot Table on a Map
If your data has zip codes, postal codes, or city names, select the data and use Insert, 3D Map. (Found to right of chart icons).
You only showed a little tiny piece of your attempted formulas so I can't tell you what's wrong.

Here are two ways to do it, showing all four combinations for C and F

$scratch.xlsm
ABCDEF
1Version 1
2Not Assigned
3 x
4 x
5 xx
6Version 2
7Not Assigned
8 x
9 x
10 xx
Sheet11
Cell Formulas
RangeFormula
A2:A5A2=IF(C2&F2="","Not Assigned","")
A7:A10A7=IF(AND(C7="",F7=""),"Not Assigned","")
 
Upvote 0
maybe
=IF(AND(ISBLANK(C2),ISBLANK(F2)),"not assigned",C2)
 
Upvote 0
I think I'm unclear as to what results you want. After seeing Micron's post, I think that if C2 is not blank, you want the formula to return V2. But if C2 is blank and F2 is not, do you want the result to be F2?
 
Upvote 0
I think I'm unclear as to what results you want. After seeing Micron's post, I think that if C2 is not blank, you want the formula to return V2. But if C2 is blank and F2 is not, do you want the result to be F2?
yes, exactly. If C2 is empty but F2 is not,
it should return F2, if neither “not assigned”
I think I'm unclear as to what results you want. After seeing Micron's post, I think that if C2 is not blank, you want the formula to return V2. But if C2 is blank and F2 is not, do you want the result to be F2?
 
Upvote 0
OK this will do it:
Excel Formula:
=IF(C2<>"",C2,IF(F2<>"",F2,"Not assigned"))

$scratch.xlsm
ABCDEF
2Not assigned
311
422
5334
Sheet11
Cell Formulas
RangeFormula
A2:A5A2=IF(C2<>"",C2,IF(F2<>"",F2,"Not assigned"))
 
Upvote 0

Forum statistics

Threads
1,215,105
Messages
6,123,114
Members
449,096
Latest member
provoking

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