If formula

abduldrda

New Member
Joined
Dec 11, 2021
Messages
16
Office Version
  1. 365
Hello everyone. I have the following question. I have male & female data in my excel sheet containing the marital status. I have to find out whether they married to
same caste people or other caste people. I needed formula both in Excel 365 and earlier versions of excel.

IF

$A$1 = ”BC-A” or ”BC-B” or ”BC-C” or ”BC-D” or ”BC-E”
$B$1 = ”BC-A” or ”BC-B” or ”BC-C” or ”BC-D” or ”BC-E”
Answer needed in $C$1 “SAME CASTE”

IF
$A$1 = “OC” $B$1=”OC” Answer needed in $C$1 “SAME CASTE”
$A$1 = ”SC” $B$1= ”SC” Answer needed in $C$1 “SAME CASTE”
$A$1 = ”ST” $B$1= ”ST” Answer needed in $C$1 “SAME CASTE”


IF
$A$1 = “OC” $B$1=”BC” or any other category. Answer needed in $C$1 “OTHER CASTE”

Thank you.
 

Excel Facts

Excel Joke
Why can't spreadsheets drive cars? They crash too often!
try this
Excel Formula:
=IF(LEFT(A1,2)=LEFT(B1,2),"Same Caste","OtherCaste")
 
Upvote 0
Solution

Forum statistics

Threads
1,215,222
Messages
6,123,716
Members
449,116
Latest member
Aaagu

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