-2
I have:
in *Column F* in *Column S* F2 Monday S2 Orange F3 Tuesday S3 Mango F4 Wednesday S4 Grape F5 Thursday S5 Pawpaw F6 Friday S6 Onion F7 Saturday S7 Apple F8 Sunday S8 Plum
My main target in Column S is Apple
regardless of what cell reference it occupies.
I want a formula that will capture the following three scenarios:
- If S2 =
Apple
and Column F has any day, I want the formula to returnApple
. - If any of the cells in Column S has
Apple
and the corresponding F cell is blank, I want the formula to returnApple
. - If either of the cells in Column F or Column S is empty, I want the formula to return a blank cell.
*Fruits* *Day of week* *Results* Apple Monday Apple [Empty] [Empty] [Empty] Pawpaw Wednesday [Empty] Onion Tuesday [Empty] Apple [Empty] [Empty] instead of Apple:see formula below [Empty] Friday [Empty] Plum Tuesday [Empty]
This formula is not working perfectly:
IF(AND(A6="",B6=""),"",IF(OR(A6="",B6="",A6="Orange",A6="Mango",A6="Plum",A6="Grape",A6="Pawpaw",A6="Onion"),"",IF(AND(A6="Apple",B6="")," ","Apple")))
Is there a formula that would achieve the desired result?
pnuts, thanks for the response. It is Excel 2003. – Dappy – 2013-05-02T00:10:15.197
pnuts: Orange, Mango, Grape, Pawpaw, Onion, Apple, and Plum are the text values in column S. The main target value is “Apple” and it could be in S2 or S70. For example, if S2 =”Mango” and F2 is whatever value, I want the formula to automatically return a blank cell. – Dappy – 2013-05-02T01:19:41.457
I have Orange in cell S2, Mango in cell S3, Grape in cell S4, Pawpaw in cell S5, Onion in cell S6, Apple in cell S7, and Plum in cell in cell S8 - I used that as an example for better understanding. S2 could be mango as the cell # and the type of fruits is not set in stone, S87 could be Plum. As long as the text value is not "Apple - main target value", the formula should return a blank cell. – Dappy – 2013-05-02T01:33:52.407
it would be much better if you could represent your excel sheet's 3 scenarios contents in tabular format... – tumchaaditya – 2013-05-02T03:42:30.000
@tumchaaditya, I have edited the original post to capture the table and what the formula is doing. Thanks for the reply. – Dappy – 2013-05-02T09:25:12.793
@Dappy - See my answer for a simpler formula:
– Kevin Fegan – 2013-05-02T17:46:19.157=IF(A2="Apple",A2,"")