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

Create a Pivot Table on a Map
If your data has zip codes, postal codes, or city names, select the data and use Insert, 3D Map. (Found to right of chart icons).

Scott Huish

MrExcel MVP
Joined
Mar 17, 2004
Messages
19,958
Office Version
  1. 365
  2. 2010
Platform
  1. Windows
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","")
 

davie670

New Member
Joined
Sep 5, 2010
Messages
4
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
 

Scott Huish

MrExcel MVP
Joined
Mar 17, 2004
Messages
19,958
Office Version
  1. 365
  2. 2010
Platform
  1. Windows
Why can't you put the formula in both places or in F2, put =V2
 
Master Excel Bundle

Excel contains over 450 functions, with more added every year. That’s a huge number, so where should you start? Right here with this bundle.

Forum statistics

Threads
1,164,673
Messages
5,838,710
Members
430,566
Latest member
ChanchalSingh

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
Top