find blanks cell in column and take header name in remarks ,

shrinivasmj

Board Regular
Joined
Aug 29, 2012
Messages
140
hi

find blanks cell in column and take header name in remarks ,

I need to remove last comma and add last sentence, if only one blanks cell is there add at last ( is not available )

if more than 2 blanks cell need to add at last ( are not available )

formula used in remarks

=UPPER(TRIM(IF(LEN(A2),"",A$1&", ")&(IF(LEN(B2),"",B$1&", ")&(IF(LEN(C2),"",C$1&", ")&(IF(LEN(F2),"",F$1&", ")&(IF(LEN(G2),"",G$1&", ")))))))

data sample below.

Service Point NoSource No. (11 Digit Pole No.)Mobile / Landline NoService Main (UG/OH)Supply (1/3)Phase (R/Y/B)Meter MakeRemarks
1 +919845898986UG1 SOURCE NO. (11 DIGIT POLE NO.), PHASE (R/Y/B), METER MAKE,
gg+910005855555UG1 LT-LTDPHASE (R/Y/B),
10000256656 UG1523553LT-LTDSERVICE POINT NO, MOBILE / LANDLINE NO,

<tbody>
</tbody><colgroup><col><col><col><col><col><col span="2"><col></colgroup>
 

Excel Facts

How can you automate Excel?
Press Alt+F11 from Windows Excel to open the Visual Basic for Applications (VBA) editor.

Forum statistics

Threads
1,216,077
Messages
6,128,685
Members
449,463
Latest member
Jojomen56

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