Many ways to use Excel software to generate 99 multiplication tables

Source: Internet
Author: User
Tags numeric

Do 99 multiplication table, a variety of ideas to create a variety of ways to generate,

1, in a worksheet area (B12:J12), enter 1-9 in turn. In the (A13:A21) area, enter 1-9 in turn. And then enter a formula within the cell B13, by dragging the fill to produce a 99 multiplication table with the upper triangular matrix structure.

2, in A13 to A21 input 1-9

B13 input

=if (b$12<= $A 13,b$12* $A 13, "")

and then drag.

3, enter the following formula in cell B2:

=if (and ($A 2<> ",b$1<>", b$1<= $A 2),b$1& "x" & $A 2& "=" &b$1* $A 2, "")

The formula for the A1 cell is as follows:

=if (and Row () <10,column () <10,column () <=row ()), Row () & "X" &column () & "=" &row () *column (), " ")

4, Sub 99 table ()

Dim I as Byte, J as Byte, msg as String

For i = the 1 to 9 ' definition multiplies a numeric variable

msg = msg & CHR (10)

For j = 1 to I ' defines another numeric variable

msg = msg & Worksheetfunction.text (J, "[Dbnum1][$-804]0") & Worksheetfunction.text (i, "[dbnum1][$-804]0") & Vba. IIf (i * j > 9, "", "get") _

& Worksheetfunction.text (I * j, "[Dbnum1][$-804]0") &

' Completes two numbers multiplication, if the result of multiplication is less than 10, then add the word "ground" in the middle.

Space (3)

Next

Next

MsgBox MSG, 64, "99 Table" "the caption displayed in the upper-right corner of the window

End Sub

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.