Need A Formula

CARBOB

Well-known Member
Joined
Jun 6, 2005
Messages
1,870
Is there a way to have the 3 values in Col's B:D in one cell, Col E, where the value in Col E will be treated as a value. When I use this method, =(B28&C28&D28) my formula will not treat them as values, get a #NUM.
Excel Workbook
BCDE
28494494
29581581
30147147
31013013
DIGIT REPEATS
Excel 2007
Cell Formulas
RangeFormula
E28=(B28&C28&D28)
E29=(B29&C29&D29)
E30=(B30&C30&D30)
E31=(B31&C31&D31)
 

Excel Facts

How to show all formulas in Excel?
Press Ctrl+` to show all formulas. Press it again to toggle back to numbers. The grave accent is often under the tilde on US keyboards.
Try

=(B28&C28&D28)+0

I tried this, then formatted the column to 000, I still get error.
Excel Workbook
BCDEF
284944940D
295815810S
301471470S
31013013##
DIGIT REPEATS
Excel 2007
Cell Formulas
RangeFormula
E28=(B28&C28&D28)+0
E29=(B29&C29&D29)+0
E30=(B30&C30&D30)+0
E31=(B31&C31&D31)+0
F28=SUMPRODUCT(--(B29:D29=B28:D28))&IF(OR(AND(ISNUMBER(MATCH({0,1,2,9},MID($E28,{1,2,3},1)+0,0))),AND(ISNUMBER(MATCH(MIN(MID($E28,{1,2,3},1)+0)+{0,1,2,3},MID($E28,{1,2,3},1)+0,0)))),"C",IF(SUM(IF(FREQUENCY(MID($E28,{1,2,3},1)+0,MID($E28,{1,2,3},1)+0)=2,1))=2,"DD",INDEX({"S","D","T","Q"},MAX(FREQUENCY(MID($E28,{1,2,3},1)+0,MID($E28,{1,2,3},1)+0)))))
F29=SUMPRODUCT(--(B30:D30=B29:D29))&IF(OR(AND(ISNUMBER(MATCH({0,1,2,9},MID($E29,{1,2,3},1)+0,0))),AND(ISNUMBER(MATCH(MIN(MID($E29,{1,2,3},1)+0)+{0,1,2,3},MID($E29,{1,2,3},1)+0,0)))),"C",IF(SUM(IF(FREQUENCY(MID($E29,{1,2,3},1)+0,MID($E29,{1,2,3},1)+0)=2,1))=2,"DD",INDEX({"S","D","T","Q"},MAX(FREQUENCY(MID($E29,{1,2,3},1)+0,MID($E29,{1,2,3},1)+0)))))
F30=SUMPRODUCT(--(B31:D31=B30:D30))&IF(OR(AND(ISNUMBER(MATCH({0,1,2,9},MID($E30,{1,2,3},1)+0,0))),AND(ISNUMBER(MATCH(MIN(MID($E30,{1,2,3},1)+0)+{0,1,2,3},MID($E30,{1,2,3},1)+0,0)))),"C",IF(SUM(IF(FREQUENCY(MID($E30,{1,2,3},1)+0,MID($E30,{1,2,3},1)+0)=2,1))=2,"DD",INDEX({"S","D","T","Q"},MAX(FREQUENCY(MID($E30,{1,2,3},1)+0,MID($E30,{1,2,3},1)+0)))))
F31=SUMPRODUCT(--(B32:D32=B31:D31))&IF(OR(AND(ISNUMBER(MATCH({0,1,2,9},MID($E31,{1,2,3},1)+0,0))),AND(ISNUMBER(MATCH(MIN(MID($E31,{1,2,3},1)+0)+{0,1,2,3},MID($E31,{1,2,3},1)+0,0)))),"C",IF(SUM(IF(FREQUENCY(MID($E31,{1,2,3},1)+0,MID($E31,{1,2,3},1)+0)=2,1))=2,"DD",INDEX({"S","D","T","Q"},MAX(FREQUENCY(MID($E31,{1,2,3},1)+0,MID($E31,{1,2,3},1)+0)))))
 
Upvote 0
I don't pretend to understand what the SUMPRODUCT formulas are meant to do but the concatenation +0 results in numeric values

Excel Workbook
BCDEF
28494494TRUE
29013013TRUE
Sheet6
 
Upvote 0
I don't pretend to understand what the SUMPRODUCT formulas are meant to do but the concatenation +0 results in numeric values

Excel Workbook
BCDEF
28494494TRUE
29013013TRUE
Sheet6
This part counts the number of digits that repeat from the previous row.
=SUMPRODUCT(--(B29:D29=B28:D28))



This part identifies the 3-digit value Col E as S(Single, (236); D(Double,022);C(Consecutive with 0 and 9 considered consecutive; T( Triple digits,222). The formula also used in a 4-digit game, where the other alpha characters come into play. DD( double digits, 2244), Q( Quads, 1111,2222)

IF(OR(AND(ISNUMBER(MATCH({0,1,2,9},MID($E28,{1,2,3},1)+0,0))),AND(ISNUMBER(MATCH(MIN(MID($E28,{1,2,3},1)+0)+{0,1,2,3},MID($E28,{1,2,3},1)+0,0)))),"C",IF(SUM(IF(FREQUENCY(MID($E28,{1,2,3},1)+0,MID($E28,{1,2,3},1)+0)=2,1))=2,"DD",INDEX({"S","D","T","Q"},MAX(FREQUENCY(MID($E28,{1,2,3},1)+0,MID($E28,{1,2,3},1)+0)))))
 
Upvote 0
Have no idea what happen, but everything appears to work, now. Thanks for the help!!!
 
Upvote 0

Forum statistics

Threads
1,224,586
Messages
6,179,729
Members
452,939
Latest member
WCrawford

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