Which formula could perform this task ?

blitssman

New Member
Joined
Aug 5, 2019
Messages
10
Hi everyone!!:)

Down below I have a list and the problem is this: I want to generate items from the list when a precise value like: 875 X 1150 or 1478 X 3620 is entered in a cell . Let say, someone has entered : 875 X 1150 or 1478 X 3620 in (column A) and I want in (column B) the rounded value from the list to show ! Is it possible to do this with excel? or need the VBA? Or what is my best option (tools) to get result like this? Ohhh by the way I am using excel 2007 and I am brand new at it!hehehe!!:laugh:

Thank you All in advance!!

[TABLE="width: 323"]
<tbody>[TR]
[TD]real value order
[/TD]
[TD]rounded value from list
[/TD]
[/TR]
[TR]
[TD]875 X 1150
[/TD]
[TD] 900 X 1200
[/TD]
[/TR]
[TR]
[TD]1478 X 3620
[/TD]
[TD] 1500 X 3600
[/TD]
[/TR]
[TR]
[TD]
[/TD]
[TD]
[/TD]
[/TR]
[TR]
[TD]
[/TD]
[TD]
[/TD]
[/TR]
[TR]
[TD] List below
[/TD]
[TD]
[/TD]
[/TR]
</tbody>[/TABLE]

[TABLE="width: 673"]
<tbody>[TR]
[TD]900 X 300
[/TD]
[TD]1200 X 300
[/TD]
[TD]1500 X 300
[/TD]
[TD]1800 X 300
[/TD]
[TD]2400 X 300
[/TD]
[/TR]
[TR]
[TD]900 X 600
[/TD]
[TD]1200 X 600
[/TD]
[TD]1500 X 600
[/TD]
[TD]1800 X 600
[/TD]
[TD]2400 X 600
[/TD]
[/TR]
[TR]
[TD]900 X 900
[/TD]
[TD]1200 X 900
[/TD]
[TD]1500 X 900
[/TD]
[TD]1800 X 900
[/TD]
[TD]2400 X 900
[/TD]
[/TR]
[TR]
[TD]900 X 1200
[/TD]
[TD]1200 X 1200
[/TD]
[TD]1500 X 1200
[/TD]
[TD]1800 X 1200
[/TD]
[TD]2400 X 1200
[/TD]
[/TR]
[TR]
[TD]900 X 1500
[/TD]
[TD]1200 X 1500
[/TD]
[TD]1500 X 1500
[/TD]
[TD]1800 X 1500
[/TD]
[TD]2400 X 1500
[/TD]
[/TR]
[TR]
[TD]900 X 1800
[/TD]
[TD]1200 X 1800
[/TD]
[TD]1500 X 1800
[/TD]
[TD]1800 X 1800
[/TD]
[TD]2400 X 1800
[/TD]
[/TR]
[TR]
[TD]900 X 2100
[/TD]
[TD]1200 X 2100
[/TD]
[TD]1500 X 2100
[/TD]
[TD]1800 X 2100
[/TD]
[TD]2400 X 2100
[/TD]
[/TR]
[TR]
[TD]900 X 2400
[/TD]
[TD]1200 X 2400
[/TD]
[TD]1500 X 2400
[/TD]
[TD]1800 X 2400
[/TD]
[TD]2400 X 2400
[/TD]
[/TR]
[TR]
[TD]900 X 2700
[/TD]
[TD]1200 X 2700
[/TD]
[TD]1500 X 2700
[/TD]
[TD]1800 X 2700
[/TD]
[TD]2400 X 2700
[/TD]
[/TR]
[TR]
[TD]900 X 3000
[/TD]
[TD]1200 X 3000
[/TD]
[TD]1500 X 3000
[/TD]
[TD]1800 X 3000
[/TD]
[TD]2400 X 3000
[/TD]
[/TR]
[TR]
[TD]900 X 3300
[/TD]
[TD]1200 X 3300
[/TD]
[TD]1500 X 3300
[/TD]
[TD]1800 X 3300
[/TD]
[TD]2400 X 3300
[/TD]
[/TR]
[TR]
[TD]900 X 3600
[/TD]
[TD]1200 X 3600
[/TD]
[TD]1500 X 3600
[/TD]
[TD]1800 X 3600
[/TD]
[TD]2400 X 3600
[/TD]
[/TR]
[TR]
[TD]900 X 3900
[/TD]
[TD]1200 X 3900
[/TD]
[TD]1500 X 3900
[/TD]
[TD]1800 X 3900
[/TD]
[TD]2400 X 3900
[/TD]
[/TR]
[TR]
[TD]900 X 4200
[/TD]
[TD]1200 X 4200
[/TD]
[TD]1500 X 4200
[/TD]
[TD]1800 X 4200
[/TD]
[TD]2400 X 4200
[/TD]
[/TR]
</tbody>[/TABLE]
 

Excel Facts

Excel motto
Not everything I do at work revolves around Excel. Only the fun parts.
Welcome to the lounge.

I kinda brute forced my way through this with a macro. See what you think.

Code:
Sub Rounding()
Dim LR As Long, ans As String, loc As Long
LR = Cells(Rows.Count, "A").End(xlUp).Row
For i = 1 To LR
loc = InStr(Range("A" & i), "x")  ' find the times sign
n1 = 1 * Left(Range("A" & i), loc - 1)  ' turn the first entry into a number
n2 = Fix(Application.WorksheetFunction.Log(n1))  ' dump the decimal places; probably don't need this (was work in progress...lol)
n3 = 100 * Round(n1 / 100, 0)  ' round
ans = n3 & " x "  ' affix a times sign
n1 = 1 * Right(Range("A" & i), Len(Range("A" & i)) - loc)  ' get the 2nd number
n2 = Fix(Application.WorksheetFunction.Log(n1))   ' don't need
n3 = 100 * Round(n1 / 100, 0)
ans = ans & n3
Cells(i, 2) = ans  ' put result in B column
Next i
End Sub
 
Last edited:
Upvote 0
Here's a formula for it rather than the VBA;


Excel 2010
ABC
1875 x 1150900 x 1200900 x 1200
21478 x 36201500 x 36001500 x 3600
3780 x 5300800 x 5300800 x 5300
4780 x 5800800 x 5800800 x 5800
5780 x 5890800 x 5900800 x 5900
62410 x 42752400 x 43002400 x 4300
Sheet1
Cell Formulas
RangeFormula
C1=(100*ROUND(1*LEFT(A1,1*FIND("x",A1)-1)/100,0))&" x "&(100*ROUND(1*RIGHT(A1,LEN(A1)-FIND("x",A1))/100,0))

<!--[if gte mso 9]><xml> <o:OfficeDocumentSettings> <o:AllowPNG/> </o:OfficeDocumentSettings> </xml><![endif]--><!--[if gte mso 9]><xml> <w:WordDocument> <w:View>Normal</w:View> <w:Zoom>0</w:Zoom> <w:TrackMoves/> <w:TrackFormatting/> <w:PunctuationKerning/> <w:ValidateAgainstSchemas/> <w:SaveIfXMLInvalid>false</w:SaveIfXMLInvalid> <w:IgnoreMixedContent>false</w:IgnoreMixedContent> <w:AlwaysShowPlaceholderText>false</w:AlwaysShowPlaceholderText> <w:DoNotPromoteQF/> <w:LidThemeOther>EN-US</w:LidThemeOther> <w:LidThemeAsian>X-NONE</w:LidThemeAsian> <w:LidThemeComplexScript>X-NONE</w:LidThemeComplexScript> <w:Compatibility> <w:BreakWrappedTables/> <w:SnapToGridInCell/> <w:WrapTextWithPunct/> <w:UseAsianBreakRules/> <w:DontGrowAutofit/> <w:SplitPgBreakAndParaMark/> <w:EnableOpenTypeKerning/> <w:DontFlipMirrorIndents/> <w:OverrideTableStyleHps/> </w:Compatibility> <m:mathPr> <m:mathFont m:val="Cambria Math"/> <m:brkBin m:val="before"/> <m:brkBinSub m:val="--"/> <m:smallFrac m:val="off"/> <m:dispDef/> <m:lMargin m:val="0"/> <m:rMargin m:val="0"/> <m:defJc m:val="centerGroup"/> <m:wrapIndent m:val="1440"/> <m:intLim m:val="subSup"/> <m:naryLim m:val="undOvr"/> </m:mathPr></w:WordDocument> </xml><![endif]--><!--[if gte mso 9]><xml> <w:LatentStyles DefLockedState="false" DefUnhideWhenUsed="true" DefSemiHidden="true" DefQFormat="false" DefPriority="99" LatentStyleCount="267"> <w:LsdException Locked="false" Priority="0" SemiHidden="false" UnhideWhenUsed="false" QFormat="true" Name="Normal"/> <w:LsdException Locked="false" Priority="9" SemiHidden="false" UnhideWhenUsed="false" QFormat="true" Name="heading 1"/> <w:LsdException Locked="false" Priority="9" QFormat="true" Name="heading 2"/> <w:LsdException Locked="false" Priority="9" QFormat="true" Name="heading 3"/> <w:LsdException Locked="false" Priority="9" QFormat="true" Name="heading 4"/> <w:LsdException Locked="false" Priority="9" QFormat="true" Name="heading 5"/> <w:LsdException Locked="false" Priority="9" QFormat="true" Name="heading 6"/> <w:LsdException Locked="false" Priority="9" QFormat="true" Name="heading 7"/> <w:LsdException Locked="false" Priority="9" QFormat="true" Name="heading 8"/> <w:LsdException Locked="false" Priority="9" QFormat="true" Name="heading 9"/> <w:LsdException Locked="false" Priority="39" Name="toc 1"/> <w:LsdException Locked="false" Priority="39" Name="toc 2"/> <w:LsdException Locked="false" Priority="39" Name="toc 3"/> <w:LsdException Locked="false" Priority="39" Name="toc 4"/> <w:LsdException Locked="false" Priority="39" Name="toc 5"/> <w:LsdException Locked="false" Priority="39" Name="toc 6"/> <w:LsdException Locked="false" Priority="39" Name="toc 7"/> <w:LsdException Locked="false" Priority="39" Name="toc 8"/> <w:LsdException Locked="false" Priority="39" Name="toc 9"/> <w:LsdException Locked="false" Priority="35" QFormat="true" Name="caption"/> <w:LsdException Locked="false" Priority="10" SemiHidden="false" UnhideWhenUsed="false" QFormat="true" Name="Title"/> <w:LsdException Locked="false" Priority="1" Name="Default Paragraph Font"/> <w:LsdException Locked="false" Priority="11" SemiHidden="false" UnhideWhenUsed="false" QFormat="true" Name="Subtitle"/> <w:LsdException Locked="false" Priority="22" SemiHidden="false" UnhideWhenUsed="false" QFormat="true" Name="Strong"/> <w:LsdException Locked="false" Priority="20" SemiHidden="false" UnhideWhenUsed="false" QFormat="true" Name="Emphasis"/> <w:LsdException Locked="false" Priority="59" SemiHidden="false" UnhideWhenUsed="false" Name="Table Grid"/> <w:LsdException Locked="false" UnhideWhenUsed="false" Name="Placeholder Text"/> <w:LsdException Locked="false" Priority="1" SemiHidden="false" UnhideWhenUsed="false" QFormat="true" Name="No Spacing"/> <w:LsdException Locked="false" Priority="60" SemiHidden="false" UnhideWhenUsed="false" Name="Light Shading"/> <w:LsdException Locked="false" Priority="61" SemiHidden="false" UnhideWhenUsed="false" Name="Light List"/> <w:LsdException Locked="false" Priority="62" SemiHidden="false" UnhideWhenUsed="false" Name="Light Grid"/> <w:LsdException Locked="false" Priority="63" SemiHidden="false" UnhideWhenUsed="false" Name="Medium Shading 1"/> <w:LsdException Locked="false" Priority="64" SemiHidden="false" UnhideWhenUsed="false" Name="Medium Shading 2"/> <w:LsdException Locked="false" Priority="65" SemiHidden="false" UnhideWhenUsed="false" Name="Medium List 1"/> <w:LsdException Locked="false" Priority="66" SemiHidden="false" UnhideWhenUsed="false" Name="Medium List 2"/> <w:LsdException Locked="false" Priority="67" SemiHidden="false" UnhideWhenUsed="false" Name="Medium Grid 1"/> <w:LsdException Locked="false" Priority="68" SemiHidden="false" UnhideWhenUsed="false" Name="Medium Grid 2"/> <w:LsdException Locked="false" Priority="69" SemiHidden="false" UnhideWhenUsed="false" Name="Medium Grid 3"/> <w:LsdException Locked="false" Priority="70" SemiHidden="false" UnhideWhenUsed="false" Name="Dark List"/> <w:LsdException Locked="false" Priority="71" SemiHidden="false" UnhideWhenUsed="false" Name="Colorful Shading"/> <w:LsdException Locked="false" Priority="72" SemiHidden="false" UnhideWhenUsed="false" Name="Colorful List"/> <w:LsdException Locked="false" Priority="73" SemiHidden="false" UnhideWhenUsed="false" Name="Colorful Grid"/> <w:LsdException Locked="false" Priority="60" SemiHidden="false" UnhideWhenUsed="false" Name="Light Shading Accent 1"/> <w:LsdException Locked="false" Priority="61" SemiHidden="false" UnhideWhenUsed="false" Name="Light List Accent 1"/> <w:LsdException Locked="false" Priority="62" SemiHidden="false" UnhideWhenUsed="false" Name="Light Grid Accent 1"/> <w:LsdException Locked="false" Priority="63" SemiHidden="false" UnhideWhenUsed="false" Name="Medium Shading 1 Accent 1"/> <w:LsdException Locked="false" Priority="64" SemiHidden="false" UnhideWhenUsed="false" Name="Medium Shading 2 Accent 1"/> <w:LsdException Locked="false" Priority="65" SemiHidden="false" UnhideWhenUsed="false" Name="Medium List 1 Accent 1"/> <w:LsdException Locked="false" UnhideWhenUsed="false" Name="Revision"/> <w:LsdException Locked="false" Priority="34" SemiHidden="false" UnhideWhenUsed="false" QFormat="true" Name="List Paragraph"/> <w:LsdException Locked="false" Priority="29" SemiHidden="false" UnhideWhenUsed="false" QFormat="true" Name="Quote"/> <w:LsdException Locked="false" Priority="30" SemiHidden="false" UnhideWhenUsed="false" QFormat="true" Name="Intense Quote"/> <w:LsdException Locked="false" Priority="66" SemiHidden="false" UnhideWhenUsed="false" Name="Medium List 2 Accent 1"/> <w:LsdException Locked="false" Priority="67" SemiHidden="false" UnhideWhenUsed="false" Name="Medium Grid 1 Accent 1"/> <w:LsdException Locked="false" Priority="68" SemiHidden="false" UnhideWhenUsed="false" Name="Medium Grid 2 Accent 1"/> <w:LsdException Locked="false" Priority="69" SemiHidden="false" UnhideWhenUsed="false" Name="Medium Grid 3 Accent 1"/> <w:LsdException Locked="false" Priority="70" SemiHidden="false" UnhideWhenUsed="false" Name="Dark List Accent 1"/> <w:LsdException Locked="false" Priority="71" SemiHidden="false" UnhideWhenUsed="false" Name="Colorful Shading Accent 1"/> <w:LsdException Locked="false" Priority="72" SemiHidden="false" UnhideWhenUsed="false" Name="Colorful List Accent 1"/> <w:LsdException Locked="false" Priority="73" SemiHidden="false" UnhideWhenUsed="false" Name="Colorful Grid Accent 1"/> <w:LsdException Locked="false" Priority="60" SemiHidden="false" UnhideWhenUsed="false" Name="Light Shading Accent 2"/> <w:LsdException Locked="false" Priority="61" SemiHidden="false" UnhideWhenUsed="false" Name="Light List Accent 2"/> <w:LsdException Locked="false" Priority="62" SemiHidden="false" UnhideWhenUsed="false" Name="Light Grid Accent 2"/> <w:LsdException Locked="false" Priority="63" SemiHidden="false" UnhideWhenUsed="false" Name="Medium Shading 1 Accent 2"/> <w:LsdException Locked="false" Priority="64" SemiHidden="false" UnhideWhenUsed="false" Name="Medium Shading 2 Accent 2"/> <w:LsdException Locked="false" Priority="65" SemiHidden="false" UnhideWhenUsed="false" Name="Medium List 1 Accent 2"/> <w:LsdException Locked="false" Priority="66" SemiHidden="false" UnhideWhenUsed="false" Name="Medium List 2 Accent 2"/> <w:LsdException Locked="false" Priority="67" SemiHidden="false" UnhideWhenUsed="false" Name="Medium Grid 1 Accent 2"/> <w:LsdException Locked="false" Priority="68" SemiHidden="false" UnhideWhenUsed="false" Name="Medium Grid 2 Accent 2"/> <w:LsdException Locked="false" Priority="69" SemiHidden="false" UnhideWhenUsed="false" Name="Medium Grid 3 Accent 2"/> <w:LsdException Locked="false" Priority="70" SemiHidden="false" UnhideWhenUsed="false" Name="Dark List Accent 2"/> <w:LsdException Locked="false" Priority="71" SemiHidden="false" UnhideWhenUsed="false" Name="Colorful Shading Accent 2"/> <w:LsdException Locked="false" Priority="72" SemiHidden="false" UnhideWhenUsed="false" Name="Colorful List Accent 2"/> <w:LsdException Locked="false" Priority="73" SemiHidden="false" UnhideWhenUsed="false" Name="Colorful Grid Accent 2"/> <w:LsdException Locked="false" Priority="60" SemiHidden="false" UnhideWhenUsed="false" Name="Light Shading Accent 3"/> <w:LsdException Locked="false" Priority="61" SemiHidden="false" UnhideWhenUsed="false" Name="Light List Accent 3"/> <w:LsdException Locked="false" Priority="62" SemiHidden="false" UnhideWhenUsed="false" Name="Light Grid Accent 3"/> <w:LsdException Locked="false" Priority="63" SemiHidden="false" UnhideWhenUsed="false" Name="Medium Shading 1 Accent 3"/> <w:LsdException Locked="false" Priority="64" SemiHidden="false" UnhideWhenUsed="false" Name="Medium Shading 2 Accent 3"/> <w:LsdException Locked="false" Priority="65" SemiHidden="false" UnhideWhenUsed="false" Name="Medium List 1 Accent 3"/> <w:LsdException Locked="false" Priority="66" SemiHidden="false" UnhideWhenUsed="false" Name="Medium List 2 Accent 3"/> <w:LsdException Locked="false" Priority="67" SemiHidden="false" UnhideWhenUsed="false" Name="Medium Grid 1 Accent 3"/> <w:LsdException Locked="false" Priority="68" SemiHidden="false" UnhideWhenUsed="false" Name="Medium Grid 2 Accent 3"/> <w:LsdException Locked="false" Priority="69" SemiHidden="false" UnhideWhenUsed="false" Name="Medium Grid 3 Accent 3"/> <w:LsdException Locked="false" Priority="70" SemiHidden="false" UnhideWhenUsed="false" Name="Dark List Accent 3"/> <w:LsdException Locked="false" Priority="71" SemiHidden="false" UnhideWhenUsed="false" Name="Colorful Shading Accent 3"/> <w:LsdException Locked="false" Priority="72" SemiHidden="false" UnhideWhenUsed="false" Name="Colorful List Accent 3"/> <w:LsdException Locked="false" Priority="73" SemiHidden="false" UnhideWhenUsed="false" Name="Colorful Grid Accent 3"/> <w:LsdException Locked="false" Priority="60" SemiHidden="false" UnhideWhenUsed="false" Name="Light Shading Accent 4"/> <w:LsdException Locked="false" Priority="61" SemiHidden="false" UnhideWhenUsed="false" Name="Light List Accent 4"/> <w:LsdException Locked="false" Priority="62" SemiHidden="false" UnhideWhenUsed="false" Name="Light Grid Accent 4"/> <w:LsdException Locked="false" Priority="63" SemiHidden="false" UnhideWhenUsed="false" Name="Medium Shading 1 Accent 4"/> <w:LsdException Locked="false" Priority="64" SemiHidden="false" UnhideWhenUsed="false" Name="Medium Shading 2 Accent 4"/> <w:LsdException Locked="false" Priority="65" SemiHidden="false" UnhideWhenUsed="false" Name="Medium List 1 Accent 4"/> <w:LsdException Locked="false" Priority="66" SemiHidden="false" UnhideWhenUsed="false" Name="Medium List 2 Accent 4"/> <w:LsdException Locked="false" Priority="67" SemiHidden="false" UnhideWhenUsed="false" Name="Medium Grid 1 Accent 4"/> <w:LsdException Locked="false" Priority="68" SemiHidden="false" UnhideWhenUsed="false" Name="Medium Grid 2 Accent 4"/> <w:LsdException Locked="false" Priority="69" SemiHidden="false" UnhideWhenUsed="false" Name="Medium Grid 3 Accent 4"/> <w:LsdException Locked="false" Priority="70" SemiHidden="false" UnhideWhenUsed="false" Name="Dark List Accent 4"/> <w:LsdException Locked="false" Priority="71" SemiHidden="false" UnhideWhenUsed="false" Name="Colorful Shading Accent 4"/> <w:LsdException Locked="false" Priority="72" SemiHidden="false" UnhideWhenUsed="false" Name="Colorful List Accent 4"/> <w:LsdException Locked="false" Priority="73" SemiHidden="false" UnhideWhenUsed="false" Name="Colorful Grid Accent 4"/> <w:LsdException Locked="false" Priority="60" SemiHidden="false" UnhideWhenUsed="false" Name="Light Shading Accent 5"/> <w:LsdException Locked="false" Priority="61" SemiHidden="false" UnhideWhenUsed="false" Name="Light List Accent 5"/> <w:LsdException Locked="false" Priority="62" SemiHidden="false" UnhideWhenUsed="false" Name="Light Grid Accent 5"/> <w:LsdException Locked="false" Priority="63" SemiHidden="false" UnhideWhenUsed="false" Name="Medium Shading 1 Accent 5"/> <w:LsdException Locked="false" Priority="64" SemiHidden="false" UnhideWhenUsed="false" Name="Medium Shading 2 Accent 5"/> <w:LsdException Locked="false" Priority="65" SemiHidden="false" UnhideWhenUsed="false" Name="Medium List 1 Accent 5"/> <w:LsdException Locked="false" Priority="66" SemiHidden="false" UnhideWhenUsed="false" Name="Medium List 2 Accent 5"/> <w:LsdException Locked="false" Priority="67" SemiHidden="false" UnhideWhenUsed="false" Name="Medium Grid 1 Accent 5"/> <w:LsdException Locked="false" Priority="68" SemiHidden="false" UnhideWhenUsed="false" Name="Medium Grid 2 Accent 5"/> <w:LsdException Locked="false" Priority="69" SemiHidden="false" UnhideWhenUsed="false" Name="Medium Grid 3 Accent 5"/> <w:LsdException Locked="false" Priority="70" SemiHidden="false" UnhideWhenUsed="false" Name="Dark List Accent 5"/> <w:LsdException Locked="false" Priority="71" SemiHidden="false" UnhideWhenUsed="false" Name="Colorful Shading Accent 5"/> <w:LsdException Locked="false" Priority="72" SemiHidden="false" UnhideWhenUsed="false" Name="Colorful List Accent 5"/> <w:LsdException Locked="false" Priority="73" SemiHidden="false" UnhideWhenUsed="false" Name="Colorful Grid Accent 5"/> <w:LsdException Locked="false" Priority="60" SemiHidden="false" UnhideWhenUsed="false" Name="Light Shading Accent 6"/> <w:LsdException Locked="false" Priority="61" SemiHidden="false" UnhideWhenUsed="false" Name="Light List Accent 6"/> <w:LsdException Locked="false" Priority="62" SemiHidden="false" UnhideWhenUsed="false" Name="Light Grid Accent 6"/> <w:LsdException Locked="false" Priority="63" SemiHidden="false" UnhideWhenUsed="false" Name="Medium Shading 1 Accent 6"/> <w:LsdException Locked="false" Priority="64" SemiHidden="false" UnhideWhenUsed="false" Name="Medium Shading 2 Accent 6"/> <w:LsdException Locked="false" Priority="65" SemiHidden="false" UnhideWhenUsed="false" Name="Medium List 1 Accent 6"/> <w:LsdException Locked="false" Priority="66" SemiHidden="false" UnhideWhenUsed="false" Name="Medium List 2 Accent 6"/> <w:LsdException Locked="false" Priority="67" SemiHidden="false" UnhideWhenUsed="false" Name="Medium Grid 1 Accent 6"/> <w:LsdException Locked="false" Priority="68" SemiHidden="false" UnhideWhenUsed="false" Name="Medium Grid 2 Accent 6"/> <w:LsdException Locked="false" Priority="69" SemiHidden="false" UnhideWhenUsed="false" Name="Medium Grid 3 Accent 6"/> <w:LsdException Locked="false" Priority="70" SemiHidden="false" UnhideWhenUsed="false" Name="Dark List Accent 6"/> <w:LsdException Locked="false" Priority="71" SemiHidden="false" UnhideWhenUsed="false" Name="Colorful Shading Accent 6"/> <w:LsdException Locked="false" Priority="72" SemiHidden="false" UnhideWhenUsed="false" Name="Colorful List Accent 6"/> <w:LsdException Locked="false" Priority="73" SemiHidden="false" UnhideWhenUsed="false" Name="Colorful Grid Accent 6"/> <w:LsdException Locked="false" Priority="19" SemiHidden="false" UnhideWhenUsed="false" QFormat="true" Name="Subtle Emphasis"/> <w:LsdException Locked="false" Priority="21" SemiHidden="false" UnhideWhenUsed="false" QFormat="true" Name="Intense Emphasis"/> <w:LsdException Locked="false" Priority="31" SemiHidden="false" UnhideWhenUsed="false" QFormat="true" Name="Subtle Reference"/> <w:LsdException Locked="false" Priority="32" SemiHidden="false" UnhideWhenUsed="false" QFormat="true" Name="Intense Reference"/> <w:LsdException Locked="false" Priority="33" SemiHidden="false" UnhideWhenUsed="false" QFormat="true" Name="Book Title"/> <w:LsdException Locked="false" Priority="37" Name="Bibliography"/> <w:LsdException Locked="false" Priority="39" QFormat="true" Name="TOC Heading"/> </w:LatentStyles> </xml><![endif]--><!--[if gte mso 10]> <style> /* Style Definitions */ table.MsoNormalTable {mso-style-name:"Table Normal"; mso-tstyle-rowband-size:0; mso-tstyle-colband-size:0; mso-style-noshow:yes; mso-style-priority:99; mso-style-parent:""; mso-padding-alt:0in 5.4pt 0in 5.4pt; mso-para-margin:0in; mso-para-margin-bottom:.0001pt; mso-pagination:widow-orphan; font-size:12.0pt; mso-bidi-font-size:11.0pt; font-family:"Times New Roman","serif"; mso-bidi-font-family:"Times New Roman"; mso-bidi-theme-font:minor-bidi;} </style> <![endif]-->
 
Upvote 0
G'day Blitssman,

There is not a single formula that will do this easily, but it can be done if you change the way your data is presented and the way you enter the odd sizes.

With your example, a value such as 1200 X 2400 is actually text, not numbers (Excel autimatically left justifies text and right justifies numbers in a cell, so even one non-numeric character in a cell means it is all treated as text)

If you were to enter your sizes as numbers in two cells i.e A1 and A2 then we can do the rest fairly easily without the large table of standard sizes.

If you put your first range of sizes in column E starting at 2400 in E1 down to 0 in E6 and your second range in column F 4200 in F1 down to 0 in F15 then the following formula in B2 will give the result you want

Note this requires that your 0-2400 goes in A1 and 0-4200 goes in A2

=INDEX(E1:E6,MATCH(A1,E1:E6,-1),1)&" X "&INDEX(F1:F15,MATCH(A2,F1:F15,-1),1)

There may be better ways to do this, but this should work.

cheers

shane
 
Upvote 0
Heyyy shane,

Thanks for your input, unfortunatly i don't get it yet ,but it make me think doing things different!! I will try something!
Whenever, could you make a little excel sheet exemple of your thought on this... i am more of a visual type of person than... Have a good day!
 
Upvote 0
heyy kweaver!!

Thanks for your input. will let you know soon if it does the trick!! thanks & have a good day!!;)
 
Upvote 0
If you aren't forced to keep the data as text and could break up the multiplication into 2 columns, this would be the simplest solution:


Excel 2010
ABCD
187511509001200
21458362015003600
378053008005300
478058008005800
578058908005900
62410427524004300
Sheet2
Cell Formulas
RangeFormula
C1=ROUND(A1,-2)
D1=ROUND(B1,-2)
 
Upvote 0
Given the uniform structure of your main table, you could try this. It is an array formula so should be entered without the {} but confirmed with Ctrl+Shift+Enter, not just Enter. If confirmed correctly, Excel will insert the {}. The formula can then be copied down.

Excel Workbook
ABCDE
1real value orderrounded value from list
2875 X 1150900 X 1200
31478 X 36201500 X 3900
42400 X 42002400 X 4200
5
6
7900 X 3001200 X 3001500 X 3001800 X 3002400 X 300
8900 X 6001200 X 6001500 X 6001800 X 6002400 X 600
9900 X 9001200 X 9001500 X 9001800 X 9002400 X 900
10900 X 12001200 X 12001500 X 12001800 X 12002400 X 1200
11900 X 15001200 X 15001500 X 15001800 X 15002400 X 1500
12900 X 18001200 X 18001500 X 18001800 X 18002400 X 1800
13900 X 21001200 X 21001500 X 21001800 X 21002400 X 2100
14900 X 24001200 X 24001500 X 24001800 X 24002400 X 2400
15900 X 27001200 X 27001500 X 27001800 X 27002400 X 2700
16900 X 30001200 X 30001500 X 30001800 X 30002400 X 3000
17900 X 33001200 X 33001500 X 33001800 X 33002400 X 3300
18900 X 36001200 X 36001500 X 36001800 X 36002400 X 3600
19900 X 39001200 X 39001500 X 39001800 X 39002400 X 3900
20900 X 42001200 X 42001500 X 42001800 X 42002400 X 4200
Lookup Rounded Up
 
Upvote 0
Actually, if your "List below" is unchanging then you could try this standard-entry formula.

Excel Workbook
ABCDE
1real value orderrounded value from list
2875 X 1150900 X 1200
31478 X 36201500 X 3900
42400 X 42002400 X 4200
5
6
7900 X 3001200 X 3001500 X 3001800 X 3002400 X 300
8900 X 6001200 X 6001500 X 6001800 X 6002400 X 600
9900 X 9001200 X 9001500 X 9001800 X 9002400 X 900
10900 X 12001200 X 12001500 X 12001800 X 12002400 X 1200
11900 X 15001200 X 15001500 X 15001800 X 15002400 X 1500
12900 X 18001200 X 18001500 X 18001800 X 18002400 X 1800
13900 X 21001200 X 21001500 X 21001800 X 21002400 X 2100
14900 X 24001200 X 24001500 X 24001800 X 24002400 X 2400
15900 X 27001200 X 27001500 X 27001800 X 27002400 X 2700
16900 X 30001200 X 30001500 X 30001800 X 30002400 X 3000
17900 X 33001200 X 33001500 X 33001800 X 33002400 X 3300
18900 X 36001200 X 36001500 X 36001800 X 36002400 X 3600
19900 X 39001200 X 39001500 X 39001800 X 39002400 X 3900
20900 X 42001200 X 42001500 X 42001800 X 42002400 X 4200
Lookup Rounded Up (2)
 
Upvote 0
Hello kweaver!

yeahhhhh!!!:) it works !!! thanks But is it possible to make (round 300 %) see in list below
this list is growing by 300 millimeters which is 1 foot if i could get those ( 400 +, 500+ to fit in the 600 mm list and those 700+, 800+, would go in the 900 list ) hope you follow me!! hehehehe:laugh: it would be great i guess there is a bit of other formula to put in there?
i think substitute or replace could be a step formula to use .... has for now i can manage to make it work like this!!! thank you a lot!!! until next time!!!:beerchug:

[TABLE="width: 342"]
<colgroup><col><col><col></colgroup><tbody>[TR]
[TD]900 X 600[/TD]
[TD]1200 X 600[/TD]
[TD]1500 X 600[/TD]
[/TR]
[TR]
[TD]900 X 900[/TD]
[TD]1200 X 900[/TD]
[TD]1500 X 900[/TD]
[/TR]
[TR]
[TD]900 X 1200[/TD]
[TD]1200 X 1200[/TD]
[TD]1500 X 1200[/TD]
[/TR]
[TR]
[TD]900 X 1500[/TD]
[TD]1200 X 1500[/TD]
[TD]1500 X 1500[/TD]
[/TR]
[TR]
[TD]900 X 1800[/TD]
[TD]1200 X 1800[/TD]
[TD]1500 X 1800[/TD]
[/TR]
[TR]
[TD]900 X 2100[/TD]
[TD]1200 X 2100[/TD]
[TD]1500 X 2100[/TD]
[/TR]
[TR]
[TD]900 X 2400[/TD]
[TD]1200 X 2400[/TD]
[TD]1500 X 2400[/TD]
[/TR]
[TR]
[TD]900 X 2700[/TD]
[TD]1200 X 2700[/TD]
[TD]1500 X 2700[/TD]
[/TR]
[TR]
[TD]900 X 3000[/TD]
[TD]1200 X 3000[/TD]
[TD]1500 X 3000[/TD]
[/TR]
[TR]
[TD]900 X 3300[/TD]
[TD]1200 X 3300[/TD]
[TD]1500 X 3300[/TD]
[/TR]
[TR]
[TD]900 X 3600[/TD]
[TD]1200 X 3600[/TD]
[TD]1500 X 3600[/TD]
[/TR]
[TR]
[TD]900 X 3900[/TD]
[TD]1200 X 3900[/TD]
[TD]1500 X 3900[/TD]
[/TR]
[TR]
[TD]900 X 4200[/TD]
[TD]1200 X 4200[/TD]
[TD]1500 X 4200[/TD]
[/TR]
</tbody>[/TABLE]
 
Upvote 0

Forum statistics

Threads
1,224,823
Messages
6,181,171
Members
453,021
Latest member
Justyna P

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