-
Formula help
Hi,
Hope someone can help me. As you can see in the attached row 2 has zeros entered into some of the cells but some are also left blank.
In the yellow highlighted area I want to put a formula which says if the above cell has a zero return a value of 1 but if the cell in row 2 is blank leave the below cell in the yellow area blank
Hope I'm making sense.
Thanks in advance for any help!
-
=IF(AND(LEN(B2)=1,B2=0),1,"")
MVP (Excel 2008-2010)
Post a workbook with sample data and layout if you want a quicker solution.
To help indent your macros try Smart Indent
Please remember to mark threads 'Solved'
-
An alternative
=IF(AND(B2<>"",B2=0),1,"")
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules