Using IF function to return to the cell

Fankykwong93

New Member
Joined
Jan 10, 2018
Messages
1
Hi, can I use the IF function to return to a cell?

For example, A1=ABC, A2=ABC, A3=XYZ, A4=DEF.

I want to know does it repeated by using IF Function.

In the cell B1, I input the formular as if it’s repeated, it will return “Repeated”, if it not, it will returned to the cell “A1”. And in the cell B2, if it not repeated, it will return to “A2” and so on.

Please give me a guide, thank you.
 

Excel Facts

When they said...
When they said you are going to "Excel at life", they meant you "will be doing Excel your whole life".
Hi, welcome to the forum!

Do you mean like this?


Excel 2013/2016
ABCD
1ABCABCXYZDEF
2RepeatedRepeatedXYZDEF
Sheet1
Cell Formulas
RangeFormula
A2=IF(COUNTIFS($A$1:$D$1,A1)>1,"Repeated",A1)
 
Upvote 0
you mean something like this?


Excel 2013/2016
ABCD
1ABCABCXYZDEF
2RepeatedABCXYZDEF
Sheet3
Cell Formulas
RangeFormula
A2=IF(A1=B1,"Repeated",A1)
 
Upvote 0

Forum statistics

Threads
1,223,893
Messages
6,175,240
Members
452,621
Latest member
Laura_PinksBTHFT

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