How can you word this statement?

Desu Nota from Columbus

Well-known Member
Joined
Mar 17, 2011
Messages
556
I am trying to write an If statement:

If any cell in column A equals or matches another cell in column A.....blah blah blah.


The values in Column A are numbers but they could potentially be text/date etc... There can be an infinite amount of duplicates (but there wont be).

Ex. If A1 = (any other cell in Column A), perform F(x).
If A5 = (any other cell in Column A), perform F(x).

I know how to write the end part of the if statement, but I don't know the beginning.

HELP ME!!

Thanks
 

Excel Facts

Wildcard in VLOOKUP
Use =VLOOKUP("Apple*" to find apple, Apple, or applesauce
And I believe I should clarify two things:


I only want to copy b1 to c1 if:
1. A1 is a duplicate and
2. B1 DOES NOT have an "s"

If A# is not a duplicate, I want it to be left unchanged.

I think I explained this poorly before.


I believe this would require 2+ IF statements.

=IF(AND((COUNTIF(A:A,A1)>1), B1="s"), C1="Y")
=IF(AND((COUNTIF(A:A,A1)>1), B1(doesn't equal)"s"), c1=B1)
 
Last edited:
Upvote 0

Forum statistics

Threads
1,225,149
Messages
6,183,187
Members
453,151
Latest member
Lizamaison

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