Thread: Min Value
View Single Post
  #2   Report Post  
Posted to microsoft.public.excel.misc
Rick Rothstein \(MVP - VB\)[_424_] Rick Rothstein \(MVP - VB\)[_424_] is offline
external usenet poster
 
Posts: 1
Default Min Value

Ah, that takes me back. Somewhere around 1990 or so, I wrote a Fortran IV
program to calculate any part of the sight distance triangle at a railroad
crossing given the other parts (I was a Civil Engineer in our Road Design
Unit doing various computer programming on the side back then). Anyway, for
simplicity sake, let's assume your variable letters are Column letters in
Row 1. Then I think this formula will do same calculation that the formula
you show does...

=1.47*V1*(T1+0.2*MAX(0,G1-3%)+W1/24)

Rick


"dksaluki" wrote in message
...
Here is an equation I'm using to calculate intersection sight
distance:
ISD = 1.47 (Vmajor) [T + (G - 3%)0.2 + (W/12)0.5]

Each variable will be a cell, for instance, G could be B12. When G
is less that 3%, I don't want it to do that part of the equation. The
actual value of G could be 2.57%, but when it is, I don't it to
"subtract 3%, then mult. by .2 In the EQUATION, i want that term,
(G - 3%)0.2, to be a minimum of zero. See, when G is less than 3%,
that whole term is negative, and i don't want that. Can anyone help
me think of a way to not do that part of the equation when G < 3%?
Is there some Excel function I'm not thinking of? I'm trying to avoid
tons of nested IF statements.

Much appreciated,
dk