prime numbers and repeats

excelNewbie22

Well-known Member
Joined
Aug 4, 2021
Messages
510
Office Version
  1. 365
Platform
  1. Windows
hi.
is it possible for a formula to write down the actual prime numbers in certain range?
and same thing for repeating numbers out of previous rows?
and in third column to compare the last 2 and write down the same one's?

this is what u help me out with:
22222222222.xlsx
CDEFGHIJK
1123456primefrom last 2compare equal #'s i+j
216242834353603
315182325293732
410161923242821
54122030353710
62111327283143
711131417212341
גיליון1
Cell Formulas
RangeFormula
I2:I7I2=SUMPRODUCT(--(MMULT(TRANSPOSE(ROW(INDIRECT("2:"&MAX(C2:H2))))^0,--(MOD(C2:H2,ROW(INDIRECT("2:"&MAX(C2:H2))))=0))=1))
J6:J7,J2:J4J2=SUM(--(COUNTIF(C3:H4,C2:H2)>0))
J5J5=SUM(--(COUNTIF(C6:H7,C5:H5)>0))
Press CTRL+SHIFT+ENTER to enter array formulas.
Cells with Conditional Formatting
CellConditionCell FormatStop If True
J:JCell Valuecontains "0"textNO


and this is what i want it to be: changed row 3 for example
22222222222.xlsx
CDEFGHIJK
1123456primefrom last 2compare equal #'s i+j
216242834353603
315182325293723,29,3723, 3723, 37
410161923242821
54122030353710
62111327283143
711131417212341
גיליון1
Cell Formulas
RangeFormula
I2,I4:I7I2=SUMPRODUCT(--(MMULT(TRANSPOSE(ROW(INDIRECT("2:"&MAX(C2:H2))))^0,--(MOD(C2:H2,ROW(INDIRECT("2:"&MAX(C2:H2))))=0))=1))
J2,J6:J7,J4J2=SUM(--(COUNTIF(C3:H4,C2:H2)>0))
J5J5=SUM(--(COUNTIF(C6:H7,C5:H5)>0))
Press CTRL+SHIFT+ENTER to enter array formulas.
Cells with Conditional Formatting
CellConditionCell FormatStop If True
J:JCell Valuecontains "0"textNO
 

Excel Facts

Get help while writing formula
Click the italics "fx" icon to the left of the formula bar to open the Functions Arguments dialog. Help is displayed for each argument.

Forum statistics

Threads
1,215,516
Messages
6,125,286
Members
449,218
Latest member
Excel Master

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