finding differences between two rows of numbers

excelNewbie22

Well-known Member
Joined
Aug 4, 2021
Messages
510
Office Version
  1. 365
Platform
  1. Windows
hi, how can i know how many differences of 1 or -1 there is between two set of numbers in two lines (no matter the order) with one formula?
like in the example, between c2:h2 and c3:h3 (aka lines 2 and 3)



couldn't copy from xl2bb, don't know why
there is no formulas in the example pic



p.s
maybe someone can help me with that too?
 

Attachments

  • 1630843238908.png
    1630843238908.png
    15 KB · Views: 8

Excel Facts

Can a formula spear through sheets?
Use =SUM(January:December!E7) to sum E7 on all of the sheets from January through December
Try this. In your Excel version it may need entry confirmation with Ctrl+Shift+Enter, not just Enter.

21 09 05.xlsm
CDEFGHI
2246810125
315112030353
44710222930
Sheet2 (4)
Cell Formulas
RangeFormula
I2:I3I2=SUMPRODUCT(--(ABS(C2:H2-TRANSPOSE(C3:H3))=1))
 
Upvote 0
Solution
You're welcome. Thanks for the follow-up. :)
 
Upvote 0

Forum statistics

Threads
1,215,634
Messages
6,125,938
Members
449,275
Latest member
jacob_mcbride

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