Excel Gurus
#1
15K+ Super Poster!!
Thread Starter
Join Date: May 2003
Location: South Wales, GB
Posts: 18,745
Likes: 0
Received 0 Likes
on
0 Posts
Excel Gurus
Right then, any one got an idea how i would right a forumla for this?
Drilling cost: for rock thickness below 5 metres $400,000
from 5 metres to under 9 metres $600,000
from 9 metres to under 11 metres $800,000
from 11 metres to under 14 metres $1,000,000
above 14 metres $1,200,000
Other costs (fixed) $3,000,000
Basically i want in Cell X to get me the drilling cost to what cell Y says the rock thickness is. Then once its worked that out also at the $3,000,000 onto it?
I know its an If formula but do you have to keep putting an If in for every Variable?
Drilling cost: for rock thickness below 5 metres $400,000
from 5 metres to under 9 metres $600,000
from 9 metres to under 11 metres $800,000
from 11 metres to under 14 metres $1,000,000
above 14 metres $1,200,000
Other costs (fixed) $3,000,000
Basically i want in Cell X to get me the drilling cost to what cell Y says the rock thickness is. Then once its worked that out also at the $3,000,000 onto it?
I know its an If formula but do you have to keep putting an If in for every Variable?
#2
Looks like you'll have to nest IF statements, but at least you'll be able to copy/paste the formula into every cell once it's written:
Pretty sure the above, converted to "normal English", means "If A1 is less than or equal to 5, then set value as 400000; else if A1 is than or equal to 9, set value to 600000, and so on...
Have that to work out the drilling cost, then use =SUM(B1+3000000) for the total cost.
The above assumes your rock thickness values are in the A-column and you're outputting drilling cost to the B-column; change those cell-addresses accordingly, paste the two formulae into the relevant columns!
It's been a while since I did any excel-formulae-programming, but I "think" that should work...
=IF(A1<=5,"400000",IF(A1<=9,"600000",IF(A1<=11,"80 0000",IF(A1<=14,"1000000",IF(A1>14,"1200000")))))
Have that to work out the drilling cost, then use =SUM(B1+3000000) for the total cost.
The above assumes your rock thickness values are in the A-column and you're outputting drilling cost to the B-column; change those cell-addresses accordingly, paste the two formulae into the relevant columns!
It's been a while since I did any excel-formulae-programming, but I "think" that should work...
#3
15K+ Super Poster!!
Join Date: Jun 2004
Location: ......
Posts: 17,303
Likes: 0
Received 0 Likes
on
0 Posts
Originally Posted by Dan B
Looks like you'll have to nest IF statements, but at least you'll be able to copy/paste the formula into every cell once it's written:
Pretty sure the above, converted to "normal English", means "If A1 is less than or equal to 5, then set value as 400000; else if A1 is than or equal to 9, set value to 600000, and so on...
Have that to work out the drilling cost, then use =SUM(B1+3000000) for the total cost.
The above assumes your rock thickness values are in the A-column and you're outputting drilling cost to the B-column; change those cell-addresses accordingly, paste the two formulae into the relevant columns!
It's been a while since I did any excel-formulae-programming, but I "think" that should work...
=IF(A1<=5,"400000",IF(A1<=9,"600000",IF(A1<=11,"80 0000",IF(A1<=14,"1000000",IF(A1>14,"1200000")))))
Have that to work out the drilling cost, then use =SUM(B1+3000000) for the total cost.
The above assumes your rock thickness values are in the A-column and you're outputting drilling cost to the B-column; change those cell-addresses accordingly, paste the two formulae into the relevant columns!
It's been a while since I did any excel-formulae-programming, but I "think" that should work...
WOW
#6
PassionFord Post Whore!!
Join Date: Jun 2003
Location: Saving the planet
Posts: 5,749
Likes: 0
Received 0 Likes
on
0 Posts
Check this badboy out
=(ALLOCATE!G302*VLOOKUP(ALLOCATE!H302,in!$BE$12:$B H$442,3))+(ALLOCATE!I302*VLOOKUP(ALLOCATE!J302,in! $BE$12:$BH$442,3))+(ALLOCATE!K302*VLOOKUP(ALLOCATE !L302,in!$BE$12:$BH$442,3))+(ALLOCATE!M302*VLOOKUP (ALLOCATE!N302,in!$BE$12:$BH$442,3))+(ALLOCATE!O30 2*VLOOKUP(ALLOCATE!P302,in!$BE$12:$BH$442,3))+(ALL OCATE!Q302*VLOOKUP(ALLOCATE!R302,in!$BE$12:$BH$442 ,3))
Tracing problems is, errrr, interesting
=(ALLOCATE!G302*VLOOKUP(ALLOCATE!H302,in!$BE$12:$B H$442,3))+(ALLOCATE!I302*VLOOKUP(ALLOCATE!J302,in! $BE$12:$BH$442,3))+(ALLOCATE!K302*VLOOKUP(ALLOCATE !L302,in!$BE$12:$BH$442,3))+(ALLOCATE!M302*VLOOKUP (ALLOCATE!N302,in!$BE$12:$BH$442,3))+(ALLOCATE!O30 2*VLOOKUP(ALLOCATE!P302,in!$BE$12:$BH$442,3))+(ALL OCATE!Q302*VLOOKUP(ALLOCATE!R302,in!$BE$12:$BH$442 ,3))
Tracing problems is, errrr, interesting
#7
15K+ Super Poster!!
Thread Starter
Join Date: May 2003
Location: South Wales, GB
Posts: 18,745
Likes: 0
Received 0 Likes
on
0 Posts
LOL these formulas suck! lol
Vlookup another great function
For this one assingment i have been told i have to use the Poisson fct nd the Norminv fct Which i have both never heard of till the other day! I have now used them but not sure if they are correct
Vlookup another great function
For this one assingment i have been told i have to use the Poisson fct nd the Norminv fct Which i have both never heard of till the other day! I have now used them but not sure if they are correct
Trending Topics
#9
15K+ Super Poster!!
Thread Starter
Join Date: May 2003
Location: South Wales, GB
Posts: 18,745
Likes: 0
Received 0 Likes
on
0 Posts
Its to do with Normal distribution. So yeah your right Normal inverse
Didnt know either of those fcts was in excel till the other day
Didnt know either of those fcts was in excel till the other day
#13
15K+ Super Poster!!
Thread Starter
Join Date: May 2003
Location: South Wales, GB
Posts: 18,745
Likes: 0
Received 0 Likes
on
0 Posts
Just doing this one now, but for some reason it aint working
=IF(C9=0,"0",IF(C9=1,"randbetween(800000,1000000)" ,IF(C9=2,"randbetween(800000,1000000)*2",IF(C9=3," randbetween(800000,1000000)*3",IF(C9=4,"Randbetwee n(800000,10000000*4")))))
Thread
Thread Starter
Forum
Replies
Last Post
nicodinho
Ford Non RS / XR / ST parts for sale.
6
07-10-2015 12:56 PM