I have a cell (AP21) containing a formula, and I want that the AP22 become black if the AP21 return empty string.
I am using conditionnal formatting but I not able to do that, because when I am using a formula to check the value of AP21, it's always considered as not empty because it contains a formula and not a text.
What I need is to evaluate in my AP22 the result of the formula of the cell AP21 and not the formula itself.
Any clue about how to do that please ?
Here is what I have to help you to understand me more
I tried also what is suggested in comments still didn't work
As #BigBen said in comments, you want to compare to an empty string
=$AP21=""
Related
So I got stuck with a problem where I could use some feedback.
I am looking at cell B1 and C1 if either contains a specific value.
If it does I want to write value from D1 (true or false) to A1.
This is the formula I started with and it's used in A1 (I had to simplify with fruits both due to data protection and simplification):
=IF(OR(B1="Apples";C1="Apples");"D1";"")
The problem now is that I want to "skip" a write if it doesn't contain any of the values but it won't work since the IF statement is left empty.
As you can see in the attached picture, I leave an empty space between each "True".
I did find a lot of solutions on how to "skip" empty cells, but that's not what I am after here. Is this even possible with Excel-formulas or do I need to dig into VBA?
Result of my formula:
Expecation:
Does it make sense?
My manager actually solved this for me if anyone is interested. The use case is a bit weird I can agree on that, but here is solution:
Formula required to "scatter the TRUE's
Formula to get the first TRUE
Formula for the upcoming TRUE's
I have a formula that looks like this
=IFERROR(B83,"OPEN")
So if a certain cell has an error it changes it to OPEN, but if it doesn't then it returns the values within that cell.
I am trying to make the cell also short the text that is being returned to 7 characters.
I made this formula:
IFERROR(B83,"OPEN"),AND(LEFT(B83,7))
However it does not work and instead returns an "NA".
Appreciate any help.
Try
IFERROR(LEFT(B83,7),"OPEN")
You need to put your desired result as the first argument of IFERROR.
I'm new to excel , I need to check if cell is empty put zero and if not don't change value
I tried to use =IF(" ",0,**)
But instead of ** I don't know How can i make it don't change the value?
try this
=IF(ISBLANK(A1),0,A1)
the problem with your formula is that there is no cell reference. Here we are checking the cell A1 if it is empty or not.
Update
Since it seems that the cell are not actually blank, try to use this formulae
=IF(TRIM(A1)="",0,A1)
You can actually join the two formula
=IF(OR(ISBLANK(A1),TRIM(A1)=""),0,A1)
Try this please, =IF(A1>0,A1,0) Please note: this will work on a different column, not the same.
I'm trying to use AND function to evaluate if some criteria is met.
Cell G2=AMAZON_US,
cell R2 = FBA,
my formula goes like this
=AND(G2="AMAZON_US", R2="FBA"),
but the result I getting is False, should be true.
Any help will be appreciated
Thank you!!
Your AND formula is correct, I tried and it returned true to me. I am wondering if your cell values are correct, i.e., if there are white-spaces in the cell content, or, you are referring to the correct cell values. Just to rule out for white spaces, can you try the following formula to see what happens?
=AND(TRIM(G2)="AMAZON_US",TRIM(R2)="FBA")
You should use the EXACT feature:
=AND(EXACT(G2,"AMAZON_US"), EXACT(R2,"FBA"))
This will do the string comparison. This is a case sensitive comparison, so be careful.
I am trying to write a conditional formatting formula for the rule "if the first cell of this row is NOT empty AND the current cell IS empty".
Basically I am trying to bring attention when a user has forgotten to enter a value in a cell.
The formula I came up with was:
="NOT(isblank($A1)) AND isblank(A1)"
Please provide an explanation why my formula is wrong, not just the correct formula =)
The logical "AND" is not an operator in Excel, it is just another function. Excel doesn't know how to evaluate =FUNCA() AND FUNCB(). Instead, wrap the two functions inside the AND function:
=AND(NOT(ISBLANK($A8)), ISBLANK(M8))