Formula for matching numbers

Kalpesh64

New Member
Joined
Apr 17, 2020
Messages
4
Office Version
  1. 2016
Platform
  1. Windows
I have a table with 8 columns and 1000 rows. I would to enter a formula in column M, which will check each rows (A1:H1000) for 2 numbers from J1 and K1. If a row has both of this number it will enter "1" in the cell in column M and if not, it will enter "0".
 

Attachments

  • Formula.png
    Formula.png
    57.4 KB · Views: 13

Excel Facts

Add Bullets to Range
Select range. Press Ctrl+1. On Number tab, choose Custom. Type Alt+7 then space then @ sign (using 7 on numeric keypad)
Here is one idea:
Book2
ABCDEFGHIJKLM
1111226345611261
21111142611781
312342661181
41226456780
Sheet2
Cell Formulas
RangeFormula
M1:M4M1=--AND(COUNTIF(A1:H1,$J$1),COUNTIF(A1:H1,$K$1))
 
Upvote 0
Solution

Forum statistics

Threads
1,214,653
Messages
6,120,751
Members
448,989
Latest member
mariah3

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