More of a formula question

allen121

Board Regular
Joined
May 7, 2003
Messages
60
I have column A, where row 1 starts with 1 and each subsequent row adds 1. For example:

Column A
1
2
3
4
5
...
100

In column B, row 1 starts with 3. Row 100 ends with 1.

I need a formula that will fill in column B with the appropriate value. Here's how it should look:

ColumnA ColumnB
0 3.00
1 2.98
2 2.96
3 2.94
4 2.92
5 2.90
6 2.88
7 2.86
8 2.84
9 2.82
10 2.80
...
100 1.00
 
Last edited:

Excel Facts

Format cells as date
Select range and press Ctrl+Shift+3 to format cells as date. (Shift 3 is the # sign which sort of looks like a small calendar).
If you put 3.00 in B1 and 2.98 in B2, select both cells and double click the bottom right hand corner of B2 it will autofill to where your data in column A ends in that pattern.

If column A was empty you would put 3.00 in B1 and 2.98 in B2, select both cells and left click and hold the bottom right hand corner of B2 and drag down to row 101.
 
Upvote 0
Hi allen121

This will work (place in B1 and drag down to B100):

Code:
=3-(((A1-1)/100)*2)

except that your data sets are inconsistent across the two examples.

Your first row in your first data set starts at 1 (A1 = 1), yet your second data set starts at 0. Which is correct?

Cheers

pvr928
 
Upvote 0
Sorry about that. The second data set is the correct one.

ColumnA ColumnB
0 3.00
1 2.98
2 2.96
3 2.94
4 2.92
5 2.90
6 2.88
7 2.86
8 2.84
9 2.82
10 2.80
...
100 1.00
 
Upvote 0
and what I posted in post number 2 still stands.
 
Upvote 0

Forum statistics

Threads
1,223,231
Messages
6,170,884
Members
452,364
Latest member
springate

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