automatically merge cells (containing formulas)

Sarchiz

New Member
Joined
Nov 17, 2017
Messages
1
Hi, I have searched and searched for a solution to my problem but couldn t find any... So here it goes
I have cells aranged in a kind of calendar style, now, in the first column i have names, then in the following columns(that represent the days of the year) i bring data that coresponds to that name and a date range .
For example, for the name john i bring the data( for example "car") from another sheet(that people fill in) that is between 9 and 15 november . The formula puts car in every single cell from 9 to 15 , while the other ones remain blank(although with formula in them).
What i need to do is to have the cells that have car in them merge automatically, so that i have "car" in the cells 9 to 15 written only once(merged and centered).
I couldn t find anything related to this , only basic stuff about manual merge and centre or formatting, but i think i found some VBA (of which i know nothing abot :( ) but it is only little similar and i don t know how to change the code to suit my needs...
Any thoughts on this ?

Thanks
 

Excel Facts

Copy formula down without changing references
If you have =SUM(F2:F49) in F50; type Alt+' in F51 to copy =SUM(F2:F49) to F51, leaving the formula in edit mode. Change SUM to COUNT.
The functions built into Excel set the value in the cell, not the formatting, which is what the cell merge is. While Conditional Format will let you look for the repeated values and modify their appearance, it does not have merge as one of the format operations you could use. You would have to have a VBA Macro to accomplish the merge.
 
Upvote 0

Forum statistics

Threads
1,223,903
Messages
6,175,279
Members
452,630
Latest member
OdubiYouth

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