Link a photo with the cell in excel - excel

Is there anyone who knows how to connect a picture with the cell that it is in at microsoft excel?
For example in the first column I put some brands of mobile phones and in the second one some pictures of them. Now when I sort the values of the first column alphabetically, I want the pictures of the second one to keep up…
How can I do that?

There is a much simpler way. Put your picture in a comment box within the description cell. That way you only have one column and when you sort the picture will always stay with the description. Okay... Right click the cell containing the description... Insert comment...right click the outer border... Format comment...colours and lines tab... Colour drop down...Fill effects...Picture tab...select picture...browse for your picture (it might be best to keep all pictures in one folder for ease of placement)...ok... you will probably need to go to the size tab and frig around with the height and width.
Done... You now only need to mouse over the red in the top right corner of the cell and the picture will appear...like magic.
This method means that the row height can be kept to a minimum and the pictures can be as big as you like.

Hold down the Alt key and drag the pictures to snap to the upper left corner of the cell.
Format the picture and in the Properties tab select "Move but don't size with cells"
Now you can sort the data table by any column and the pictures will stay with the respective data.
This post at SuperUser has a bit more background and screenshots: https://superuser.com/questions/712622/put-an-equation-object-in-an-excel-cell/712627#712627

Select both the column you are sorting, and the column that the picture is in (I am assuming the picture is small compared to the cell, i.e. it is "in" the cell). Make sure that the object positioning property is set as "move but don't size with cells".
Now if you do a sort, the pictures will move with the list being sorted.
Note - you must include the column with the picture in your range when you sort, and the picture must fit inside the cell.
The following VBA snippet will make sure all pictures in your spreadsheet have their "move and size" property set:
Sub moveAndSize()
Dim s As Shape
For Each s In ActiveSheet.Shapes
If s.Type = msoPicture Or s.Type = msoLinkedPicture Or s.Type = msoPlaceholder Then
s.Placement = xlMove
End If
Next
End Sub
If you want to make sure the picture continues to fit after you move it, you can use xlMoveAndSize instead of xlMove.

Related

Hide rows only for certain columns

I have a worksheet with tables that I can be hidden/revealed by the user for readability. I want to put a long summary table along the side of the same worksheet, and I don't want that summary table to get hidden when the other tables are hidden.
So is there a way I can leave some columns with unhidden rows while other columns have hidden rows, or even a way I can freeze a section that can be viewed next to the rest of the sheet?
I'm quite sure that you can't hide cells in specific rows only in some columns and not in others. You can freeze left and top columns and rows in the view ribbon, but if you hide rows, they'll still be hidden in the frozen parts.
If you want something to show on the left side even when rows are hidden, it would have to be something that can "float" above the cells, like some kind of form (which would probably be modal), or a graphic that does not move or size with cells.
You might be able to create a PNG of a range on the fly, and then "Paste" it into A1, so that it sits to the left of your data, even though you have hidden cells. Maybe :)

How to hide a specific row of Excel chart data table?

So right now I have a chart with 3 series, which will have 3 rows of data in the chart's data table. If I want to hide the last row in the data table, but keep the series in the chart, how can it be done? The only way I can think of is to create a block to cover that part, but is there a better way of doing it?
Edit: I'm looking for a way to show the series in chart, but not in chart data table.
Select the last row of chart data and format the cell's displayed text/number as ;;;. If the chart data is dynamic, then the last row can be identified with something like,
=row()=match(1e99, A:A)
This would enable you to create a conditional formatting rule that applies the ;;; cell number format to the last row.
Expanding on my comment to your question.
You could:
Make a new table on the worksheet that points, via formulas, to the range that the chart is made from.
In those formulas, use if() statements to toggle the values on/off based on whatever logic you are using to hide/show. Below I use a checkbox.
Remove the data table from your chart
Make the background of your chart area "No Fill" so it's transparent.
Line your chart x-series up with the formula based table so it looks like the data table for your chart
You can just make changes in the graphs.
Select the line graph series that you do not want to display in the chart.
Right click and click on "Format Data Series"
Click on "Fill & Line" (an icon of a paint)
Select "No Line"

How do I update the data label of a chart?

For example, I have a pie chart, 95% of it is blue.
Now I update some excel fields that have to do with the blue area of the piechart, 95% then goes down to 90%.
Now I want to also update the Data label of the blue area because it is still 95% and not 90%, instead of changing it manually, how can I make excel update the labels for me?
First, you have to build the labels via formula somewhere on a worksheet. Once you've done that, you can link the chart's labels to the cell containing the "data labels"
To build your data labels, somewhere else on your worksheet (conveniently, in the adjacent column would be ideal), use Excel formula to build the desired label string, for example: ="Blue occupies "&TEXT(B3,"0%")
Repeat for the other points in the chart.
Once you've done that, here's how you link Data Labels to a cell reference (normally, Data Labels are linked to the underlying data value).
Select the data label
Then, place your cursor in Excel's Formula Bar, and enter the formula like ='Sheet2'!$C$3.
Now, that data label is associated by the formula, to the cell C3, which contains the desired data label that we built above. Repeat as needed.
Note: The sheet name is required in this formula. Use single-quotes around the sheet name if it contains spaces.

My Excel row is locked at height of 409.5 and I want to increase the size

The height for one of my rows in excel maxes out at 409.5 and I need to increase the height. Where/how can I fix this.
Create a row below the row you want taller than 409.5
Select cell of top row, and cell of bottom row
Click arrow next to the Merge & Center button in the Alignment section of the Home tab on the ribbon
Click Merge Cells
You can repeat this process multiple times if two cells worth of height isn't enough.
Note that Merge & Centre isn't available for a table, only a standard worksheet.
You can merge two rows so that you get more space to work.

change the height of a rows in excel when hundreds have been set to 0

I have an excel spreadsheet with a list of hundreds of users. A lot of the rows have been set to height 0. I want to set all of them to the same value so I can see all of them. I'd rather not have to go through every row and drag the ones with height 0 down so I can see them.
What do I do?
Mark all cells and double click when the resize icon is visible over the columns.
Assuming you are using 2003 or 2007:
Highlight all of the rows.
Right-click over top of one of the row numbers.
Click the Row Height menu item and set it to your desired height.
Select any cell in the data range, then Ctrl+Shift+L(apply data filter).
All rows with zero row height will appear.
Can use Ctrl+Shift+L to trigger data filter off.

Resources