Insert of Shape

vmjan02

Well-known Member
Joined
Aug 15, 2012
Messages
1,060
Office Version
  1. 365
  2. 2021
  3. 2019
  4. 2016
  5. 2013
I am not sure is it possible in excel I have a cell values from M6 to M16, the code should insert the shapes with respect to cell values.

eg:- if the cell value is >0% then code should insert the triange shape with colour Green
if the cell value is <0% then code should insert the triange shape with colour Red and should rotate down
if the cell value is =0% then code should insert the Rectangle shape with colour gray height(0.08'') and width(0.37'')

I have tryied many options and non is working for me condition formation is not giving the corret results, is there a way out of this.

Note from M6 to M16 the cell values may change.

1692783633328.png
 

Excel Facts

How to calculate loan payments in Excel?
Use the PMT function: =PMT(5%/12,60,-25000) is for a $25,000 loan, 5% annual interest, 60 month loan.
A "different" approach:
-in N6 insert the formula =M6
-copy N6 up to N16
-select N6:N16 and apply the font Wingdings 3
-select N6:N16; right-click, select Format cells; under the tab Number, select Category=Custom, in the Type box insert [Green]"p";[Red]"q";[Black]"¬", complete with Ok

For the Custom format codes, see Number format codes - Microsoft Support

The XL2BB minisheet show the Excel point of view, and the image shows the visual output:
MULTI_C30822.xlsm
MN
5
622%p
7-23%q
80¬
95%p
103%p
1111%p
120%¬
13-7%q
14-9%q
15
Foglio4
Cell Formulas
RangeFormula
N6:N14N6=M6
 

Attachments

  • VMJAN02_Immagine 2023-08-23 125157.jpg
    VMJAN02_Immagine 2023-08-23 125157.jpg
    19.3 KB · Views: 4
Upvote 0
Why not use Excel's built-in Conditional Formatting (Icon Sets). Set up like this:

1692794366077.png


Here is the result:

1692794425987.png
 
Upvote 0
A "different" approach:
-in N6 insert the formula =M6
-copy N6 up to N16
-select N6:N16 and apply the font Wingdings 3
-select N6:N16; right-click, select Format cells; under the tab Number, select Category=Custom, in the Type box insert [Green]"p";[Red]"q";[Black]"¬", complete with Ok

For the Custom format codes, see Number format codes - Microsoft Support

The XL2BB minisheet show the Excel point of view, and the image shows the visual output:
MULTI_C30822.xlsm
MN
5
622%p
7-23%q
80¬
95%p
103%p
1111%p
120%¬
13-7%q
14-9%q
15
Foglio4
Cell Formulas
RangeFormula
N6:N14N6=M6
if its 0% then a circle is required, can this be possible
 
Upvote 0
Hi this is working perfect as required only one change

[Color10]>0% ▲;[Red]-0% ▼;[Color16]0%(circle) -- can this be done
If the value is 0% then a circle with grey colour

[Color10]0% ▲;[Red]-0% ▼;[Color16]Ꙩ
Try this one

1692868485572.png
 
Upvote 0
Solution

Forum statistics

Threads
1,215,109
Messages
6,123,137
Members
449,098
Latest member
Doanvanhieu

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