Formula for Populating Cells From: a List of Values and List of Numbes as a Mulitple?

MEUserII

Board Regular
Joined
Oct 27, 2017
Messages
91
Office Version
  1. 365
  2. 2021
  3. 2019
  4. 2016
  5. 2013
Platform
  1. Windows
I have a set of unique values in column A and a set of numbers in column B to populate those values by in Column C as a multiple. Would there be a formula I could enter in to column C that would populate the values in column A as a multiple of the numbers in column B?

For example:
RowColumn AColumn BColumn C
1Value A1Value A
2Value B2Value B
3Value C3Value B
4Value D4Value C
5Value E5Value C
6Value F6Value C
7Value G7Value D
8Value H8Value D
9Value I9Value D
10Value J10Value D

<tbody>
</tbody>

















EDIT: Could a mod correct the typo in the post title for the correct spelling of "Numbers"; that way other users can find this post in case they have the same question? The editing feature does not allow me to edit the title of posts.
 
Last edited:

Excel Facts

Can Excel fill bagel flavors?
You can teach Excel a new custom list. Type the list in cells, File, Options, Advanced, Edit Custom Lists, Import, OK
Hi MEUserII,

I do not see the relationship between these numbers and values. Could you tell us how the values in Col. C needs to be figured out?

For example, why is C2 value B, and C3 value B?
 
Last edited:
Upvote 0
It's unclear what you mean, can you provide a before an after example with actual values please?

Usually, if you enter a formula into a cell, the answer is returned in the *same* cell.
So if you enter a formula into column C, then column C will return output (if possible), not column A

If all the values are numerical, can you not use something like
Code:
=A1*B1
or
Code:
=C1*B1
?
 
Upvote 0
Hi MEUserII,

I do not see the relationship between these numbers and values. Could you tell us how the values in Col. C needs to be figured out?

For example, why is C2 value B, and C3 value B?
Column C represents the "Column B number" of times the "Column A value" should be listed in Column C.

It's unclear what you mean, can you provide a before an after example with actual values please?

Usually, if you enter a formula into a cell, the answer is returned in the *same* cell.
So if you enter a formula into column C, then column C will return output (if possible), not column A

If all the values are numerical, can you not use something like
Code:
=A1*B1
or
Code:
=C1*B1
?

Specifically:
______|(Column A)x(Column B)= ("Number in Column B" of "Values in Column A" is to be listed in Column C)
Row 1: (Value A)x(1) = 1 of Value A in Column C (C1)
Row 2: (Value B)x(2) = 2 of Value B in Column C (C2, C3)
Row 3: (Value C)x(3) = 3 of Value C in Column C (C4, C5, C6)
Row 4: (Value D)x(4) = 4 of Value D in Column C (C7, C8, C9, C10)

Note: The values in column A are words (not numbers); specifically, an example like:
Row 1: (Word A)x(1) = 1 of Word A in Column C (C1)
Row 2: (Word B)x(2) = 2 of Word B in Column C (C2, C3)
Row 3: (Word C)x(3) = 3 of Word C in Column C (C4, C5, C6)
Row 4: (Word D)x(4) = 4 of Word D in Column C (C7, C8, C9, C10)
 
Last edited:
Upvote 0
I have posted a longer sample, so it's more helpful to see what the end result should look like in Column C by the formula I am asking about.
Row
Column A
Column B
Column C
1
Alpha
2
Alpha
2
Beta
3
Alpha
3
Gamma
4
Beta
4
Delta
5
Beta
5
Epsilon
6
Beta
6
Zeta
7
Gamma
7
*
*
Gamma
8
*
*
Gamma
9
*
*
Gamma
10
etc.
etc.
Delta
11
Delta
12
Delta
13
Delta
14
Delta
15
Epsilon
16
Epsilon
17
Epsilon
18
Epsilon
19
Epsilon
20
Epsilon
21
Zeta
22
Zeta
23
Zeta
24
Zeta
25
Zeta
26
Zeta
27
Zeta

<tbody>
</tbody>
 
Upvote 0
Anyone know of a formula that would accomplish that would answer this question?
 
Last edited:
Upvote 0
Not sure how as a formula, as a macro try:
Code:
Sub Expand()

Dim x as Long
Dim y as Long: y = 1
Dim arr() as Variant

Application.ScreenUpdating = False

x = Cells(Rows.Count, 1).End(xlUp).Row
arr = Cells(1,1).Resize(x, 2).Value

For x = lbound(arr, 1) to ubound(arr, 1)
  Cells(y, 4).Resize(arr(x, 2)).Value = arr(x,1)
  y = Cells(1, 4).End(xlUp).Row + 1
Next x

Application.ScreenUpdating = False

Erase arr

End Sub
 
Upvote 0

Forum statistics

Threads
1,214,814
Messages
6,121,711
Members
449,049
Latest member
THMarana

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