General Car Related Discussion. To discuss anything that is related to cars and automotive technology that doesnt naturally fit into another forum catagory.

Excel Gurus

Thread Tools
 
Search this Thread
 
Old Apr 27, 2005 | 01:51 PM
  #1  
Rhys's Avatar
Rhys
Thread Starter
15K+ Super Poster!!
 
Joined: May 2003
Posts: 18,745
Likes: 0
From: South Wales, GB
Default 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?
Reply
Old Apr 27, 2005 | 02:13 PM
  #2  
Dan B's Avatar
Dan B
Advanced PassionFord User
 
Joined: Apr 2004
Posts: 2,364
Likes: 0
Default

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:

=IF(A1<=5,"400000",IF(A1<=9,"600000",IF(A1<=11,"80 0000",IF(A1<=14,"1000000",IF(A1>14,"1200000")))))
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...
Reply
Old Apr 27, 2005 | 02:21 PM
  #3  
RSKim's Avatar
RSKim
15K+ Super Poster!!
 
Joined: Jun 2004
Posts: 17,303
Likes: 0
From: ......
Default

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:

=IF(A1<=5,"400000",IF(A1<=9,"600000",IF(A1<=11,"80 0000",IF(A1<=14,"1000000",IF(A1>14,"1200000")))))
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...

WOW
Reply
Old Apr 27, 2005 | 02:27 PM
  #4  
Rhys's Avatar
Rhys
Thread Starter
15K+ Super Poster!!
 
Joined: May 2003
Posts: 18,745
Likes: 0
From: South Wales, GB
Default

Awsome nice one Dan
Reply
Old Apr 27, 2005 | 02:29 PM
  #5  
Dan B's Avatar
Dan B
Advanced PassionFord User
 
Joined: Apr 2004
Posts: 2,364
Likes: 0
Default

You're welcome!
Reply
Old Apr 27, 2005 | 02:34 PM
  #6  
Paul Eggleton's Avatar
Paul Eggleton
PassionFord Post Whore!!
 
Joined: Jun 2003
Posts: 5,749
Likes: 0
From: Saving the planet
Default

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
Reply
Old Apr 27, 2005 | 02:41 PM
  #7  
Rhys's Avatar
Rhys
Thread Starter
15K+ Super Poster!!
 
Joined: May 2003
Posts: 18,745
Likes: 0
From: South Wales, GB
Default

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
Reply
Old Apr 27, 2005 | 02:44 PM
  #8  
Paul Eggleton's Avatar
Paul Eggleton
PassionFord Post Whore!!
 
Joined: Jun 2003
Posts: 5,749
Likes: 0
From: Saving the planet
Default

Heard of Poissions ratio but wtf is Norminv? Normalised inverse something ???
Reply
Old Apr 27, 2005 | 02:47 PM
  #9  
Rhys's Avatar
Rhys
Thread Starter
15K+ Super Poster!!
 
Joined: May 2003
Posts: 18,745
Likes: 0
From: South Wales, GB
Default

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
Reply
Old Apr 27, 2005 | 02:58 PM
  #10  
foreigneRS's Avatar
foreigneRS
Testing the future
 
Joined: Jul 2003
Posts: 17,597
Likes: 24
From: W. Sussex
Default

have you programmed your own functions using vba?
Reply
Old Apr 27, 2005 | 03:03 PM
  #11  
Rhys's Avatar
Rhys
Thread Starter
15K+ Super Poster!!
 
Joined: May 2003
Posts: 18,745
Likes: 0
From: South Wales, GB
Default

I havent no.


Now lets not get to techinal
Reply
Old Apr 27, 2005 | 03:20 PM
  #12  
JamesH's Avatar
JamesH
10K+ Poster!!
iTrader: (21)
 
Joined: Jul 2003
Posts: 10,807
Likes: 8
From: .
Default




Soooooooo glad when I finished my Excel coursework
Reply
Old Apr 27, 2005 | 03:53 PM
  #13  
Rhys's Avatar
Rhys
Thread Starter
15K+ Super Poster!!
 
Joined: May 2003
Posts: 18,745
Likes: 0
From: South Wales, GB
Default



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")))))
Reply
Related Topics
Thread
Thread Starter
Forum
Replies
Last Post
jessie_rs
Ford RS Cosworth Parts for Sale
1
Jan 5, 2016 01:16 PM
nicodinho
Ford Non RS / XR / ST parts for sale.
6
Oct 7, 2015 12:56 PM
stevecfrst1
Cars for Sale
1
Sep 30, 2015 05:18 AM
RIB1122
Ford RS Cosworth Parts for Sale
2
Sep 17, 2015 07:45 PM
RSmark84
General Car Related Discussion.
19
Sep 13, 2015 01:29 PM




All times are GMT. The time now is 10:43 AM.