Ignore blank Cells and take the next

nf24eg

Board Regular
Joined
Nov 15, 2009
Messages
152
Office Version
  1. 2013
  2. 2010
Platform
  1. Windows
Hello, I know it sound easy but I don't know why my brain got it stuck to work ..
I use this formula
Excel Formula:
=C1&"-"&D1&CHAR(10)&B1&CHAR(10)&E1&CHAR(10)&J1&CHAR(10)&K1&CHAR(10)&"Details are attached"
but I try to make it ignore the blank cells and take the one after it without activating 2 (CHAR(10)) which will leave 2 or 3 lines empty instead of only 1
much appreciate your help
 

Excel Facts

Do you hate GETPIVOTDATA?
Prevent GETPIVOTDATA. Select inside a PivotTable. In the Analyze tab of the ribbon, open the dropown next to Options and turn it off
What version of Excel are you using?
Please update your account details to show this, as it affects which functions you can use.
 
Upvote 0
What version of Excel are you using?
Please update your account details to show this, as it affects which functions you can use.
updated, office 2010 and/or 2013
 
Upvote 0
Ok, thanks for that.
As you don't have Textjoin one way would be to use a load of if functions like
Excel Formula:
=C1&"-"&IF(D1<>"",D1&CHAR(10),"")&IF(B1<>"",B1&CHAR(10),"")&IF(E1<>"",E1&CHAR(10),"")&J1&CHAR(10)&K1&CHAR(10)&"Details are attached"
You just need to add the rest
 
Upvote 0
Solution
Ok, thanks for that.
As you don't have Textjoin one way would be to use a load of if functions like
Excel Formula:
=C1&"-"&IF(D1<>"",D1&CHAR(10),"")&IF(B1<>"",B1&CHAR(10),"")&IF(E1<>"",E1&CHAR(10),"")&J1&CHAR(10)&K1&CHAR(10)&"Details are attached"
You just need to add the rest
Thank you so much, working great
 
Upvote 0
You're welcome & thanks for the feedback.
 
Upvote 0

Forum statistics

Threads
1,214,935
Messages
6,122,337
Members
449,077
Latest member
Jocksteriom

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