Need help with arrays (I think)

R

rbhedal

I have a slight problem that Excel either can not do or I can not ente
the formula
correctly. I am asking for your expertise. What I need is to ente
Value A
into a cell and then enter Value B into a cell, have Excel do th
division,
and then generate a table with that number of rows. For example, if
enter
"20" into cell A2, enter "5" into cell B2, I need Excel to generate
table
in cell C4 that starts at 1 and then in cell C5 is 2, then 3 ....

Can anyone give me some assistance with this. It would be greatl
appreciated
 
B

Biff

Hi!

Try this:

What happens if A2 = 20 and B2 = 3?

Enter this formula in C4 and copy down as far as you think you'll need:

=IF(ISERR(A$2/B$2),"",IF(ROWS(C$4:C4)<=A$2/B$2,ROWS(C$4:C4),""))

Biff
 
R

rbhedal

Biff,
I tried your suggestion & it kind of worked but, instead of getting
c4=1, d4=2, etc... All I got was c4=1 & then it stoped. Any sugestions
on how to fix that?
 
B

Biff

Hi!

In your original post you say:
C4 that starts at 1 and then in cell C5 is 2, then 3 ....

That "sounds" like a column to me!

If you want it across a ROW:

=IF(ISERR($A2/$B2),"",IF(COLUMNS($C4:C4)<=$A2/$B2,COLUMNS($C4:C4),""))

Copy ACROSS as needed.

Biff
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

Ineed help with arrays (I think) 2
Learning arrays. 13
Need help with arrays (I think) 1
I need help with arrays (Still) 4
I need help with arrays (I think) 1
I still need help! 1
I still need help! 1
I need Help! 2

Top