Combine IF ISBLANK and Concatenate Functions

isadoko

Active Member
Joined
Jan 10, 2005
Messages
322
Office Version
  1. 365
Platform
  1. Windows
I have to columns

Column H = Department
Column I = Group

Some cells in column H are blank, some cells in column I are blank. I want to test for blanks and:

1. If cell in column H not blank, show contents, else "No Department"
2. If cell in column I not blank, show contents, else "No Group"
3. If both cells in columns H and I blank, show "No Data"

I have written the formulation below, individual parts work but not this combination, ie results column J, Union. Would appreciate any help to understand what I am doing wrong when combine.

=IF(H2="","No Dept",IF(I2="","No Group",IF(H2:I2="","No Data",CONCATENATE(H2,": ",I2))))

Department Group Union
Big Small #VALUE!
Hi Low #VALUE!
Black White #VALUE!
Oil Water #VALUE!
 

Excel Facts

Highlight Duplicates
Home, Conditional Formatting, Highlight Cells, Duplicate records, OK to add pink formatting to any duplicates in selected range.
It looks like your formula does not deal correctly with examples where both entries are blank.
Try this
Code:
=if(h2&i2="","no data",if(h2="","no dept",if(i2="","no group",h2&":"&i2)))
 
Upvote 0
Mr. Higgins how true your feedback and frankly only after looking at your solution is that clear to me--thanks very much for your help and lesson.
 
Upvote 0

Forum statistics

Threads
1,215,026
Messages
6,122,743
Members
449,094
Latest member
dsharae57

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