Consulting

Results 1 to 9 of 9

Thread: Solved: Help Not VBA

  1. #1
    VBAX Regular FF Ethan's Avatar
    Joined
    May 2010
    Location
    Boardman, OR
    Posts
    28
    Location

    Solved: Help Not VBA

    Ok I have no clue how to do this probably a dumb question.
    I work with water spreadsheets and my boss asked me to figure out a forumula (preferably easy to change) to take the formula we already have whick uses 8 Gallons per minute per acre and change only a few fields to 4.5 gallons per minute per acre and i have no clue how because the formula we use is just spreading the water flow evenly can anyone help im stuck. Here is the exact formula =IF(Acrehrs.>0,Acrehrs./$totalacrehrs*$totalgallons,0)
    ??????? Does any of this make sense?
    Ethan Ellis
    Before VBA Express After VBA Express.

  2. #2
    Moderator VBAX Wizard Aussiebear's Avatar
    Joined
    Dec 2005
    Location
    Queensland
    Posts
    5,059
    Location
    Not without seeing your workbook

    Click on Go Advanced, Manage Attachments and upload a sanitised version of your workbook.

    We will need to see how you work out AcreHrs, total AcreHrs and totalGallons

    Normally an IF statement is written in the following format

    =IF( test, Value if True, Value if False)

    In this case your formula as you have written it

    =IF(AcreHrs>0, AcreHrs, /totalAcreHrs*TotalGallons,0)

    according to my understanding, will fail if the value of AcreHrs is zero
    Remember To Do the Following....
    Use [Code].... [/Code] tags when posting code to the thread.
    Mark your thread as Solved if satisfied by using the Thread Tools options.
    If posting the same issue to another forum please show the link

  3. #3
    VBAX Regular FF Ethan's Avatar
    Joined
    May 2010
    Location
    Boardman, OR
    Posts
    28
    Location
    Am I able to do that in Excel 2003?
    Ethan Ellis
    Before VBA Express After VBA Express.

  4. #4
    Moderator VBAX Wizard Aussiebear's Avatar
    Joined
    Dec 2005
    Location
    Queensland
    Posts
    5,059
    Location
    Absolutely
    Remember To Do the Following....
    Use [Code].... [/Code] tags when posting code to the thread.
    Mark your thread as Solved if satisfied by using the Thread Tools options.
    If posting the same issue to another forum please show the link

  5. #5
    VBAX Regular FF Ethan's Avatar
    Joined
    May 2010
    Location
    Boardman, OR
    Posts
    28
    Location
    Here it is this is where the hours get inputed and the gallons get distributed evenly.
    Ethan Ellis
    Before VBA Express After VBA Express.

  6. #6
    VBAX Regular FF Ethan's Avatar
    Joined
    May 2010
    Location
    Boardman, OR
    Posts
    28
    Location
    Here is the formula i came up with (doesnt work)
    =IF(B5>0,B5/$X5*$A5/8*4.5,0)
    But A3 Needs to have the same value as X6.
    Im stuck!!!!!!!
    Please help.
    Ethan Ellis
    Before VBA Express After VBA Express.

  7. #7
    Site Admin
    Urban Myth
    VBAX Guru
    Joined
    May 2004
    Location
    Oregon, United States
    Posts
    4,940
    Location
    So are there certain fields where the sprinkler package is engineered to 4.5 GPM then? I thought they were all bored for 8 GPM? If not, how do you know which one's aren't?

  8. #8
    VBAX Regular FF Ethan's Avatar
    Joined
    May 2010
    Location
    Boardman, OR
    Posts
    28
    Location
    They used to be.
    Now they have a sprinkler package that they can change from 4.5 to 8.
    They send us a paper that says which ones are and which ones arent.
    Ethan Ellis
    Before VBA Express After VBA Express.

  9. #9
    VBAX Regular FF Ethan's Avatar
    Joined
    May 2010
    Location
    Boardman, OR
    Posts
    28
    Location
    Ok, well my boss decided to go in a different direction with this thanks anyway.
    Ethan Ellis
    Before VBA Express After VBA Express.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •