Either of 4 types of Candle in a cell

hsandeep

Well-known Member
Joined
Dec 6, 2008
Messages
1,226
Office Version
  1. 2010
Platform
  1. Windows
  2. Mobile
I want to make Marubozu Candles in a cell (D3)
Input cells:
A3: Either 1 or 2
B3: Either 3 or 4

D3 Candle should be EITHER of 4 types:
If A3:B3 combination is 1,3 then FULL GREEN CANDLE
If A3:B3 combination is 2,3 then FULL RED CANDLE
If A3:B3 combination is 1,4 then HALF GREEN CANDLE (HALF GREEN: candle starts at lower boundary of the cell & ends in the middle)
If A3:B3 combination is 2,4 then HALF RED CANDLE (HALF RED: candle starts at UPPER boundary of the cell & ends in the middle)

Any idea given would be highly appreciated.
I am using Excel 2007.
 

Excel Facts

Format cells as currency
Select range and press Ctrl+Shift+4 to format cells as currency. (Shift 4 is the $ sign).
=vlookup((a3&b3)+0,{13,"full green candle";23,"full red candle";14,"half green candle";24,"half red candle"},2,0)
 
Last edited:
Upvote 0
=vlookup((a3&b3)+0,{13,"full green candle";23,"full red candle";14,"half green candle";24,"half red candle"},2,0)

I want Candle SYMBOL in the cell...a rectangular box with either Green or Red color filled (for FULL) & 'Half' rectangular box with either Green or Red color filled
 
Upvote 0
OK, put this formula in D3:
=VLOOKUP((A3&B3)+0,{13,"¢";23,"¢";14,"¤";24,"¤"},2,0)

Change the font to Wingdings 2. You can use a different font but you'll have to change the corresponding characters in the formula.

Then you will need to set up 2 conditional formatting formulas.
Select Column D.
Conditional Formatting Formula 1: =$A1=1
Format Font Color to Green
Conditional Formatting Formula 2: =$A1=2
Format Font Color to Red
 
Upvote 0
This helps but not fully.

¢ gives a square box BUT only half (HALF candle criteria is full filled for GREEN Candle)
Box should start from TOP going down till half of the cell height is covered.

For FULL CANDLES i.e. BOX should at least cover 80% of the cell's height (any symbol)?
 
Upvote 0
The premise is still the same you just need to find a font set that has the characters you want.
 
Upvote 0

Forum statistics

Threads
1,223,227
Messages
6,170,853
Members
452,361
Latest member
d3ad3y3

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