Value based on row count

Miloni

Board Regular
Joined
Nov 10, 2008
Messages
103
Office Version
  1. 2007
Platform
  1. Windows
Hi,

I have a database with few columns and rows based on formulas and the values of each column change at different frequency. For eg :The value in col B changes at every 5 rows. Col P changes at every 50th row. Col P is derived from a formula : 0.0254 * Col B * 0.075. Is it possible to have a formula run in Col P where it does calculate the value based on the formula and value in Col B and display the same value as from row 1 in all rows untill row 49 and when it reaches row 50, it displays the value based on the formula and the value in B 50 ?

any help appreciated..

Thanks

miloni
 

Excel Facts

Format cells as currency
Select range and press Ctrl+Shift+4 to format cells as currency. (Shift 4 is the $ sign).
Something like this maybe...
=IF(ROW()<50,0.0254*$B$1*0.075,0.0254*$B$50*0.075)

place in P1 and fill down
 
Upvote 0
Thanks for looking into it. Haven't tried the formula suggested yet, will let you know if it does work. Sorry for the late response.
 
Upvote 0

Forum statistics

Threads
1,224,582
Messages
6,179,670
Members
452,936
Latest member
anamikabhargaw

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