If-and-isblank

osaben

Board Regular
Joined
Mar 17, 2010
Messages
62
Office Version
  1. 365
Platform
  1. Windows
Looking to populate a fourth cell based on the values in three other cells,

If A29 is blank and B29 is "green" and C29 is "red" the I would like cell D29 to be "Team B" otherwise I would like cell D29 to be "Team C".

I am unsure how to write this formula.
 

Excel Facts

Pivot Table Drill Down
Double-click any number in a pivot table to create a new report showing all detail rows that make up that number
=IF(AND(A29="",B29="green",C29="red"),"Team B","Team C")
 
Upvote 0
thank you. But this formula does not seem to work. it continues to bring back "Team C" regardless if A29 is blank.
 
Upvote 0
cell a29 is blank, but it is a formula. Maybe that matters?
 
Upvote 0
cell a29 is blank, but it is a formula. Maybe that matters?

No, that won't matter. Are you sure there's no spaces in any of the cells? To confirm use the LEN function for each cell in the range A29:C29 i.e. LEN(A29), LEN(B29) and LEN(C29) and confirm the formulas return 0, 5 and 3 respectively.

Robert
 
Last edited:
Upvote 0
You're welcome. It's not that they're hidden but not visible.
 
Upvote 0

Forum statistics

Threads
1,224,823
Messages
6,181,175
Members
453,021
Latest member
Justyna P

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