×
INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
• Talk With Other Members
• Be Notified Of Responses
• Keyword Search
Favorite Forums
• Automated Signatures
• Best Of All, It's Free!

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

#### Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

# EXCEL-formula help2

## EXCEL-formula help

(OP)

Good afternoon, Experts.
I'm need a formula to calculate COL-C.
If both A and B have data, then I need the result (in COL-C) to show both fields separated by a / character.
If only one of A or B have data, then I need the result (in COL-C) to show just the one field (no / character).
I'm very rusty with these excel if formulas so I'm hoping one of you guys could help me out.

Example - desired results

COL-A COL-B COL-C
3333 3333
2222 3333 2222/3333
9999 9999

### RE: EXCEL-formula help

Hi,

COL-A	COL-B	COL-C
2222		2222
2222	3333	2222/3333
4444		4444


Formula
C2:=A2&IF(ISBLANK(B2),"","/"&B2)

Skip,

Just traded in my OLD subtlety...
for a NUance!

"The most incomprehensible thing about the universe is that it is comprehensible" A. Einstein

You Matter...
unless you multiply yourself by the speed of light squared, then...
You Energy!

### RE: EXCEL-formula help

Your 'Example - desired results' are wrong

Try this formula in cell C2: =IF(OR(ISBLANK(A2), ISBLANK(B2)), A2 & B2,A2 &"/" & B2)

---- Andy

"Hmm...they have the internet on computers now"--Homer Simpson

### RE: EXCEL-formula help

(OP)
Perfect! thanx, Skip!

### RE: EXCEL-formula help

#### Quote (TomSalvato)

If only one of A or B have data...

So, this is also a possibility:

COL-A	COL_B	COL_C
2222
2222	3333
4444
5555


---- Andy

"Hmm...they have the internet on computers now"--Homer Simpson

### RE: EXCEL-formula help

(OP)
Combo - never even heard of that formula. Does exactly what I needed. Thanks again, sir.

#### Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

#### Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Close Box

# Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

• Talk To Other Members
• Notification Of Responses To Questions
• Favorite Forums One Click Access
• Keyword Search Of All Posts, And More...

Register now while it's still free!