• Hi All

    Please note that at the Chandoo.org Forums there is Zero Tolerance to Spam

    Post Spam and you Will Be Deleted as a User

    Hui...

  • When starting a new post, to receive a quicker and more targeted answer, Please include a sample file in the initial post.

Hyperlinks and Macros

Sukesh

New Member
I have encountered two problems while preparing a dashboard in excel. They are as follows:
1. I am unable to assign a Macro for a merged cell.
2. I want to create a hyperlink which refers to the respective address based on the value of the cell.

Ex: if the cell value is A it should refer to some address and if the same cell value is changed to B it should refer to some other address i.e, based on the value of the cell the hyperlink should change.

can anyone help me with this if possible....


Thanks in advance.
 
Good day Sukesh and welcome to the forum.

NEVER USE MERGED CELLS

Merged cells can help you arrange values in a meaningful way, but they come with problems -- numerous problems, big problems.


For instance, Excel won't apply column formats to a merged cell unless you select all the columns that comprise the merge.


In addition, not all cell formats, stick once you emerge a cell.


You can't sort a column with merged cells.


You can't even select a single-column range if there's a merged cell in it -- go ahead, try!, the whole column will become merged, not good.


You cannot put a filter on it. The problem is the filter is completely useless because the filter will groan with the "merged cells need to be identically sized." Warning, which in English means you have to make each group of merged cells the same size as the largest group. And you have to find them all!


Merging cells in columns and rows could lead to data loss, bad thing.


Formulas and Functions that refer to merged cells will not work, bad thing.


Don't hesitate to use merged cells if you really need them (you don’t), but they will limit what you can do to the cells and even the columns involved.


Center Across Selection is a far better alternative to merging.


To apply this format, select the cells you want to appear merged and then launch the Alignment group dialog, Ctrl + 1, and click the Alignment tab. Center Across Selection is in the Horizontal drop-down.


You will get the desired look you want but without the merged cell's problems.

As you discovered by now, merged cells is a "functionality" you should not use in Excel. Don't do it, not now, not in the future, never.


.
 
Back
Top