I have made an excel formula that will take the data entered into column O and then multiply it by .04 and then input that data into column P. So I can calculate a four percent fee from the original number. I am now left with a bunch of $0.00 in every row in the P column that lacks data in the O column. I understand this is because 0*.04 = 0. But what I was wondering is if there was a way to make it so that if the total in column P was less than $0.01 or equivalent to $0.00 that the cell would remain blank.
I tried to post an image to show exactly what I am talking about, but I do not yet have the reputation. Hopefully you can understand what I am trying to do based off what I typed.
Do conditional formatting of the cell such that if the value = 0, the number type is "general"
Then, in your formula for the cell itself (assuming you multiply C3*B3), you can do this:
=IF(C3*B3>0,C3*B3,"")
This will use number formatting for all values that are non-zero, but empty string "" with general formatting for zero values.
Method 1:
Select the cells with the percentages in column P and tap Ctrl+1. When the Format Cells dialog opens, go to the Number tab and choose Custom from the list down the left. Supply the following in the Type: textbox.
$#,##0.00;;;
Click OK in the lower right.
Method 2:
Go into Excel Options (Alt+F,T) and choose Advanced from the list down the left. Scroll the right pane down to the Display options for this worksheet section and uncheck Show a zero in cells that have a zero value. Click OK in the lower right.
You can use conditional formatting when the value is less than 0.01 make the font white
The cell will still be 0 but not visible
Try this: =IF(O2<0.01,"",O2*0.04). This particular formula is checking to see if cell O2 is less than 0.01, and if so is filling in the P2 cell with a zero-length string. If O2 is equal or larger than 0.01 it will multiply by .04 and put that result in cell P2.
Related
I have a matrix in excel (pictured below) that I need the following conditions for:
(1) A cell should be orange if a time fraction and Tj are provided on the same row, AND a Ball name is provided on its respective column
(2) A cell should be blue if, on the same row, any previous current input is <= .5* the first current input on the same row, regardless of if a ball name is provided
(3) A cell should be blue if no time fraction or Tj are provided on the same row, or if no ball name is given in its respective column
(4) The cells must default to blue when nothing is entered
At the moment, the cells are filled blue, so I understand that I need to only format when the cells should become orange, but I'm having some trouble working out the logic for conditional formatting, and as its a large table, I would like to avoid having to enter a conditional format for each individual cell.
Is there a way to say, for instance, (cell) = AND(tfrac <> "", tj <> "", Ballname <> "") format(orange), and then have the row/column numbers change for each cell, to that cell's respective column/row letter/number? Thanks!
If you are new to conditional formatting, you can follow this answer I gave to a different question: Is it possible to have excel highlight cells that don't conform to my desired format (ex. date as 6.2.2021 vs the desired 6/2/2021)? which will show you how to go about it.
As to the actual conditional logic for the formula that will be used, I would try something like:
=AND($time<>"", $tj<>"", ballname="what_you_want")
I guess I'm a little confused by the CELL function within Excel. I'm using Excel 2010 and decided to try to figure out the CELL function as it pertains to the cells color. The documentation reads: The value 1 if the cell is formatted in color for negative values; otherwise returns 0 (zero). However, the image below is what has me confused.
The content in the C column are the formulas, and the content in the D column are the results from the formulas. I have tried so many different formatting options (including Conditional Formatting) on this simple test, but cannot get the value of =CELL("color",B1) to be anything but 0.
Any information on this would be much appreciated.
Documentation says:
The value 1 if the cell is formatted in color for negative values;
otherwise returns 0 (zero).
An example of a format that would generate a "1": Right click a cell -> Format Cells -> Select Number -> Choose the second format where the negative number appears in red.
I am looking for a way to make this example work:
The columns you see in the screenshot above are the columns L and M, the idea behind this little screenshot is that the user can make a selection in the second column ("Ja", "N.V.T.", etc), these selections should have different values. So lets say the "Ja" selection should count for 2,5 and any other selection should count for 1.
In the last cell of the screenshot (the one with the value: 2,5), a formula should count the amount of "Ja" selections, give them the correct value (2,5 if the weight percentage is 25%) and sum those values.
I'm currently using this formula (it also contains some other selections but for this example lets just focus on the "Ja" selection):
=(COUNTIF(M17:M20;"Ja")*10/M16)+(COUNTIF(M17:M20;"N.V.T.")*10/$M$16)+(COUNTIF(M17:M20;"Ja, maar..")*5/$M$16)
M17:M20 is the selection area and M16 is the row amount.
Is it possible to achieve this with just a formula or do I have to look for solutions elsewhere?
As per comments:
=(SUMIF(M17:M20;"Ja";L17:L20)*10)+COUNTIF(M17:M20;"<>Ja")
I'm putting to good use one of the Excel posts on Conditional Formatting, but I'm having trouble applying it to multiple cells. I have a row of cells:
F4;G4;H4;I4;J4
in which G4 is a Yes/No dropdown list (these values come from another sheet). I tried:
Conditional Formatting > New Rule > Use a formula to determine which cells to format
in the Format values where this formula is true I inserted =(G4="No") and it would apply bold + gray + strikethrough to the row of cells mentioned above (including G4).
Problem: when I change the G4 value to No, only the first cell - F4 - changes.
What am I doing wrong?
As mentioned by #hsan:
=$G4="No" should work
but also the "Applies to" range should be:
=$F$4:$J$4
Without the anchor ($) the references are relative, so F triggers the formatting because, relative to F, G is one column to the right and from F one column to the right shows No. It may be easier to see what is happening if, with the “wrong” formula (but the same Applies to range of F:J) you change the content of J4 to No. I4 should now be formatted bold+grey+strikethrough.
Maybe think of the CF as rastering through the specified range, so where that is =$F$4:$J$4, it starts in F4 and considers “does G4 equal No?” then steps to G4 and asks “does H4 equal No?” – and so on.
With the anchor, the comparison is against ColumnG at every step in the cycle.
I'm using the following formula:
=IFERROR(VLOOKUP($A42,SHEET2!$A$2:$N$91,11,FALSE),"")
Of the 100 plus rows of data, the formula has returned correct data. For the cells where the formula returns incorrect data, it appears that data from the preceeding cell (which had returned a correct value) is being returned.
For example, if in column 11 of SHEET2, the VLOOKUP value weight for product #246 is 0.04. Products #247-#300 should return the weight of 0.02. However, the formula returns 0.04.
I've painted the format for the cells that work on each sheet over the cells that haven't been working. Nothing has changed.
Any ideas?
Sounds like you have Calculation set to manual - Change that to Automatic by using "Calculation Options" to the right of the "Formulas" tab .......or just press F9 key to re-calculate