I am having a problem with my data label formatting within an excel chart. As can be seen in the image below, the chart isn't retaining the number formatting I have set in the columns B and C.
I have used conditional formatting to make it so that if a number is below 0.01 it is displayed as a scientific e.g. 5.E-05 to 2 DP. And I've also got another rule that keeps all the numbers to 2DP if they are over 0.01.
I've already tried to link the formatting back to the sources of the cells but it gives me the same results e.g. Format Data Labels >> Number >> Linked to source (ticked).
The reason I do not do this manually is because its part of a python automation project, and it would also defeat the object of my conditional formatting.
I've already seen the solution for this question but the answer was to manual change it and again wouldn't allow me to use my conditional formatting.
Excel Chart doesn't keep format
See link for image below.
https://www.dropbox.com/s/45gmvtjqgd0y8e0/thing.png
Thanks in advance
Instead of using Conditional Formatting you can use custom number formatting which should flow through to the chart.
Select cells you want to format
Right Click > Format Cells
On the Number tab, select Custom
In the Type: field enter the following
[<0.01]0.E+00;0.00
This will format anything less than .01 as Scientific, and anything else by a number with 2 decimal points.
Related
I'm working with some tallies and would like to manually piece together a fraction that could be read using conditional formatting.
The extracted formula that uses fractional values are as follows:
COUNTIFS(Converter!40:40,"Y",Converter!$5:$5,F$5) & " / " & COUNTIFS(Converter!40:40,"Y",Converter!$5:$5,F$5) + COUNTIFS(Converter!40:40,"N",Converter!$5:$5,F$5)
Basically, the fraction should look like a/(a+b) and I would like all tallied figures to be displayed where applicable, i.e. 2/8 or 20/100.
Unfortunately Excel is only reading this as a date, even if I use the TEXT() formula, the figures continue to be read by Excel as dates.
I'd like the conditional formatting to turn red for any figure that's short of "1".
How can I get Excel to read the figures as a fraction? Any assistance would be greatly appreciated!
You should leave formatting as a visual aspect that is displayed versus something you should control in your formulas.
What you need to do is select the cell you want to format as a fraction.
Then you select the fraction amounts that you want.
Edit: If you want to fix the denominator then you need to use a custom format.
Unfortunately I couldn't get the fractions to work as fractions, luckily what I needed it to do was trigger the conditional formatting, so I ended up using the following conditional formatting formula.
It's a little longer but got me there in the end...
=AND(RIGHT(D1,(FIND(" ",D1,1)-1))>0,LEFT(D1,(FIND(" ",D1,1)-1))=RIGHT(D1,(FIND(" ",D1,1)-1)))
I have an excel sheet that has data extracted from Hyperion Essbase. I'd like to put a sort of rounding rule on that data without removing the numbers generated from Essbase. For example, in a cell there's the value $13.5232, I'd like to set a rule over that cell telling it to round the absolute value of it to two decimal places if the second decimal is greater than or equal to 0.01, if so than make it 0, if not than keep that number rounded to the second decimal.
To achieve this I simply created another chart on the side with an =IF(ROUND()) equation but I would like to get rid of that chart and apply that rule over the data already extracted by Essbase.
The approach you're taking is probably the most common, which is where you have your typical "retrieve" area and then a separate area that references that and has the formulas you need to adjust that data. Another approach would be that you could add a new Scenario to the cube to perform rounding as needed. You can also use conditional formatting to format, as in here: How do you add a rule to cells in excel?
READ CAREFULLY THE QUESTION PLEASE, IT MENTIONS EXCEL VBA.
NOT EXCEL
I was given the task of fixing a date input on a VBA form. A textbox should have the user enter the date as MM/DD/YYYY.
I am required to use an input mask, not allowed to do something as validating date after or using a calendar. So far I was able to use the 2 methods mentioned (forcing the format after using ISDATE).
However, it has now been made clear it has to be a mask so keys are filtered on entry, with the mask being visible when entering the date: __/__/____
Where you see underscore, he should only be able to enter numbers and the / are always at those positions
Is there a way to do this? I can only find a tutorial for the mask in Access VBA.
I Googled "Excel input mask" and the 2nd result was: Using an Input Mask Microsoft Excel written by Allen Wyatt...
Using an Input Mask
...You may wonder if there is a way to set up an input mask that will add the colon automatically. The good news is yes, there is. The bad news is no, there isn't. Sound confusing? Let me explain...
You can set up a custom format that will display your time in any format you want. For instance, you could use the following steps:
Select the cells you want to use for time input.
Choose Format from the Cells menu. Excel displays the Format Cells dialog box.
Make sure the Number tab is displayed.
In the Category list, choose Custom.
Replace whatever is in the Type box with #":"00.
Click on OK.
You can now enter your times using just digits. The problem (and this is the bad news) is that the cell doesn't really contain a time. If you enter 230 (for 2:30), it doesn't contain 2:30 as a time—it contains two hundred and thirty. Thus, you can't use the contents of the cell directly in time calculations.
To overcome this, you can use another column to show the entered digits converted into a time. All you need to do is use a formula to do the conversions. For instance, if the time you entered was in cell A3, you could use the following formula in a different cell to do the conversion:
=(INT(A3/100)/24)+((A3 - (INT(A3/100)*100))/1440)
Format the cell that contains the above formula so it displays one of the various time formats, and you are all set.
(Full article and more at the source.)
This post may help you...
Formatting MM/DD/YYYY dates in textbox in VBA
Hey guys I have a situation where I need to format a column to display APR(%) values in a certain way. Basically the values should be formatted like below:
Raw input Formatted value
========= ===============
0 0
0.0 0
4.4566 4.5
5.00 5
6 6
6.4 6.4
I tried creating this formula below but for some reason it doesn't round the number to 2 decimal places.
=INT(ROUND(A1,1)*100)/100
What am I doing wrong? Or is there a better way to handle this?
UPDATE: So I am applying the function to the same cell as the number is in. For instance the A1 cell contains 4.566 value and I applied the function to that same cell and this doesn't seem to be working for Excel. Any other ways to do this?
P.S: Im using the MS Excel for Mac
Two steps
Format the cells to Number with one decimal place
Conditionally format the cells to a Number Format of General if the value is an integer
EDIT: Since you cannot conditionally format the number format in Excel for MAC, there are several workarounds.
If you do not mind changing the actual value, add a column which you will use to display the result. Format the Column as "General", and use this formula (assuming your "real data" is in column A:
=IF(A1<>INT(A1),ROUND(A1,1),A1)
Other options that may work would include using an event-triggered macro (if that can be done in Excel for Mac); and possibly you can create the worksheet in Excel for Windows and the conditional format might be recognized in Excel for Mac, even if you can't create it there.
As explained in the documentation here,
Suppose that cell A1 contains 823.7825.
...
=ROUND(A1,2) ... equals 823.78
You should be able to therefore apply this to your entire column to get the precision that you are after.
Rather than using =INT(<another_cell_value>*100)/100 to derive the format you want, simply specify a custom format with the following:
#,###.##
This way, you only get the number of decimal places that you specified in the ROUND function.
I am having a problem with malfunctioning conditional formatting in Excel 2010, whereby "traffic lights" occasionally have the wrong color. I have several KPIs, with the same "traffic light"-style conditional formatting applied across the cell range: most traffic lights are correct, but some aren't. Monkeying around with, for example, clearing the cell's format and either re-defining it, or copying the format from a different cell, typically helps, but sometimes it does not, and then I am stuck and have to clear the cell's conditional formatting and paste ("hardcode") the appropriate traffic-light image onto it. Can anyone suggest a "traffic lights" implementation that does not depend on Excel's conditional formatting?
I was able to reproduce the apparent rogue behaviour you described and may have a solution for you.
Columns A correct; column C not-so-much
Column C has a three icon Conditional Format rule as you described using 100 and 75 as the Value and Percentage as the Type. Column A (which appears to work correctly) uses 1 and 0.75 as the Value and Number as the Type.
Raw numerical values instead of percentages in Value text box(es)
So it would appear that Excel 2007 does not handle converting percentages within Conditional Formatting as well as it should.
You shouldn't have to change the display of the values within your worksheet. Just modify the conditional format rules to use the underlying values of your percentages and Number in place of Percentage as the Type.
Delving a little deeper into this showed that using 100% and 75% (as opposed to 100 and 75 sans % symbol) for the Value(s)s while maintaining Percentage as the Type will get Excel to change these on-the-fly to 1 and 0.75 when you leave the corresponding Value text box while retaining Percentage as the Type. This seems contradictory to me, but it does provide the correct green-yellow-red traffic light behaviour.