if find blank cell in coloum need to take the header name in remarks

shrinivasmj

Board Regular
Joined
Aug 29, 2012
Messages
140
if find blank cell in coloum need to take the header name with comma after each word in remarks

<colgroup><col></colgroup><tbody>
</tbody>



Service Point No.Source No. (11 Digit Pole No.)Mobile / Landline No.Service Main (UG/OH)Supply (1/3)REMARKS
10000160985 UG1Service Point No. ,Mobile / Landline No. ,
1 9845612589UG1Source No. (11 Digit Pole No.)
10000160985 1Service Point No. , Mobile / Landline No. , Service Main (UG/OH)

<colgroup><col><col><col><col><col><col></colgroup><tbody>
</tbody>
 

Excel Facts

Can you AutoAverage in Excel?
There is a drop-down next to the AutoSum symbol. Open the drop-down to choose AVERAGE, COUNT, MAX, or MIN
hi need one more step to add here need to modify the formula

=TRIM(IF(LEN(A2),"",A$1&", ")&IF(LEN(B2),"",B$1&", ")&IF(LEN(C2),"",C$1&", ")&IF(LEN(D2),"",D$1&", ")&IF(LEN(E2),"",E$1&", "))

in remarks its need to remove the last comma and add the words ( is not available ) if single blank cell found ,

if more then one blank cell then add at last words as ( are not available )
 
Upvote 0
Here you are:

=SUBSTITUTE(TRIM(IF(LEN(A2),"",A$1&", ")&IF(LEN(B2),"",B$1&", ")&IF(LEN(C2),"",C$1&", ")&IF(LEN(D2),"",D$1&", ")&IF(LEN(E2),"",E$1&", ")),",","",COUNTBLANK(A2:E2))&IF(COUNTBLANK(A2:E2)=1," is "," are ")&" not available"
 
Upvote 0

Forum statistics

Threads
1,216,081
Messages
6,128,696
Members
449,464
Latest member
againofsoul

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