IF & AND issue

davie670

New Member
Joined
Sep 5, 2010
Messages
4
Hello, A beginner here so be gentle!

In my spreadsheet I need to see if a word appears in column B2 ("Corresp") and a "Y" in D2, If both appear I need "MO1698" to appear in F2. If only one appears there should be NO change. I can get them to show individually but when I try to combine them I get errors and can't sort it. Excel help suggests If/And combinations. Can anyone suggest something? Thanks in advance. David
 

Excel Facts

Bring active cell back into view
Start at A1 and select to A9999 while writing a formula, you can't see A1 anymore. Press Ctrl+Backspace to bring active cell into view.
What do you mean there should be NO change, you can't have a formula and literal text in the same cell, it would take VBA for that.

If you mean you just want it to appear blank, then:
=IF(AND(B2="Corresp",D2="Y"),"MO1968","")
 
Upvote 0
What do you mean there should be NO change, you can't have a formula and literal text in the same cell, it would take VBA for that.

If you mean you just want it to appear blank, then:
=IF(AND(B2="Corresp",D2="Y"),"MO1968","")

Scott - thanks for your quick response. Sorry I wasn't clear enough. I did have that formula but the box the formula is in is NOT in the box MO1968 should be quoted in so the formula needs to print the result in that box so, for example, the formula will be in V2 but needs to show the result in F2. I hope this is clear enough. David
 
Upvote 0
Why can't you put the formula in both places or in F2, put =V2
 
Upvote 0

Forum statistics

Threads
1,214,614
Messages
6,120,530
Members
448,969
Latest member
mirek8991

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