How to compare two Rows?

nature969

Board Regular
Joined
Dec 20, 2016
Messages
55
Please help

I want a formula which can show me if A2=A3, say Yes, and if a4=a5 say yes.

thanks
 

Excel Facts

How can you automate Excel?
Press Alt+F11 from Windows Excel to open the Visual Basic for Applications (VBA) editor.
you mean, say in column B.... =if(A2=A3,"Yes","No")? or something more
 
Last edited:
Upvote 0
you mean, say in column B.... =if(A2=A3,"Yes","No")? or something more

Thanks for your reply.
In column 2 I applied the formula. all good with the result.

Now I have an other question. I want to sort my data which only show me row 2 and row 3 and hide if row 3=row 4. see below


IDFormula
M108620868376648NO
M108620868376111No
M108620868376649

<tbody>
</tbody><colgroup><col></colgroup>
Yes
M108620868376649

<tbody>
</tbody><colgroup><col></colgroup>
No
M108620868376650

<tbody>
</tbody><colgroup><col></colgroup>
Yes
M108620868376650

<tbody>
</tbody><colgroup><col></colgroup>
No

<tbody>
</tbody>
 
Upvote 0
Can anyone help? I got what I want, but Now I have an other question. I want to sort my data which only show me row 2 and row 3 and hide if row 3=row 4. see below


IDFormula
M108620868376648NO
M108620868376111No
M108620868376649

<tbody>
</tbody>

Yes
M108620868376649

<tbody>
</tbody>

No
M108620868376650

<tbody>
</tbody>

Yes
M108620868376650

<tbody>
</tbody>

No

<tbody>
</tbody>
 
Upvote 0

Forum statistics

Threads
1,214,954
Messages
6,122,461
Members
449,085
Latest member
ExcelError

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