Hello,
I have a bouch of cells and I would like to fill each cell with ;; and if the cell has text with ;text; I can do it manually with concatenate, but the problem is that I have loads of columns. Plz help.
Thx
Hello,
I have a bouch of cells and I would like to fill each cell with ;; and if the cell has text with ;text; I can do it manually with concatenate, but the problem is that I have loads of columns. Plz help.
Thx
You can do concantenate and just extend formula, no matter how much columns you have...
For example on second sheet write:
=IF(Sheet1!A1="", "", ";"&Sheet1!A1&";")
and extend to all range as in frist sheet
Then select your data -> Copy
go to first page, select same range and Paste Spetial -> Values
Then delet sheet #2
Never use Merged Cells in Excel
Hi,
One way with the following macro.
Just select the range and run it. Alternatively if you want to hard code the range substitute![]()
Please Login or Register to view this content.
For Each cell In Range("A2:Z10")
Regards
Richard Buttrey
RIP - d. 06/10/2022
If any of the responses have helped then please consider rating them by clicking the small star iconbelow the post.
Alternative approach:
modify ActiveSheet.UsedRange as appropriate of course (if using ActiveSheet the .Parent is not really nec.)![]()
Please Login or Register to view this content.
My Recommended Reading:
Volatility
Sumproduct & Arrays
Pivot Intro
Email from XL - VBA & Outlook VBA
Function Dictionary & Function Translations
Dynamic Named Ranges
alternative alternative
use asap utilitues add in http://www.asap-utilities.com/ it has an insert before/after and can include blank cells to give what you want
"Unless otherwise stated all my comments are directed at OP"
Mojito connoisseur and now happily retired
where does code go ?
look here
how to insert code
how to enter array formula
why use -- in sumproduct
recommended reading
wiki Mojito
how to say no convincingly
most important thing you need
Martin Wilson: SPV
and RSMBC
you can use this code:
insert formula in column b and drage down,![]()
Please Login or Register to view this content.
suppose your data in column A.
thanks
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks