If conditions return no value

BootsLopena

New Member
Joined
Jul 11, 2018
Messages
3
My statement is not returning any value unless I manually input values for the statement to evaluate. Font is set to general. I intentionally have my condition values to be equal to a cell. Below is my formulas that should work. I’m stuck and frustrated. I think it’s self explanatory, but I’ve been looking at this way to long.

CELL I WANT TO ANSWER
yes/no for completed on time (this is populated by AG2, AH2, AND AF2)
=IF(AG2=1,"YES",IF(AH2=-1,"NO",IF(AF2=0,"")))


Yes on time (populated by yes on time calculated)
=AH2


Not on time (populated by not on time calculated)
=AI2


Blank value
AF2 nothing here


Yes on time calculated
=IF(NOT(AG2>=0),"","1")


Not on time calculated
=IF(NOT(AG2<0),"","-1")
 

Excel Facts

Can a formula spear through sheets?
Use =SUM(January:December!E7) to sum E7 on all of the sheets from January through December
My statement is not returning any value unless I manually input values for the statement to evaluate. Font is set to general. I intentionally have my condition values to be equal to a cell. Below is my formulas that should work. I’m stuck and frustrated. I think it’s self explanatory, but I’ve been looking at this way to long.

CELL I WANT TO ANSWER
yes/no for completed on time (this is populated by AG2, AH2, AND AF2)
=IF(AG2=1,"YES",IF(AH2=-1,"NO",IF(AF2=0,"")))


Yes on time (populated by yes on time calculated)
=AH2


Not on time (populated by not on time calculated)
=AI2


Blank value
AF2 nothing here


Yes on time calculated
=IF(NOT(AG2>=0),"", "1" )


Not on time calculated
=IF(NOT(AG2<0),"", "-1" )

Hi,

Without going further,

First try Removing the quote marks in Red in your formulas above, those quote marks made the 1 and -1 TEXT.
Then see how your other formulas are working out.
 
Upvote 0
Hi,

Without going further,

First try Removing the quote marks in Red in your formulas above, those quote marks made the 1 and -1 TEXT.
Then see how your other formulas are working out.


Its at work. But I can get the exact statement to work on another worksheet. That’s the confusing part. I’ll try in the morning. Thks
 
Upvote 0
One is 1
one is -1
one is blank
numbers that are pulled from another cell that has a nested statements. Thought maybe the statements were the issue.
 
Upvote 0
Perhaps you missed my question in post #2 (put post 4 kinda partly answered it anyway)

My reason for asking is, unless AG2, AH2 and AF2 contain exactly 1, -1 and 0 (AND it is numeric, not text) , you will get "" for the answer
 
Upvote 0
One is 1
one is -1
one is blank
numbers that are pulled from another cell that has a nested statements. Thought maybe the statements were the issue.

OK just because it shows 1, doesnt mean it contains a numeric 1 - it could be a text 1. What is the formula that produces the 1?
 
Upvote 0

Forum statistics

Threads
1,224,823
Messages
6,181,175
Members
453,021
Latest member
Justyna P

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