+ Reply to Thread
Results 1 to 15 of 15

different calculation every time depends on what i will pick in the scroll cell

  1. #1
    Registered User
    Join Date
    11-21-2014
    Location
    Russia
    MS-Off Ver
    2007-2013
    Posts
    8

    different calculation every time depends on what i will pick in the scroll cell

    Hey guys

    I'm new in excel and i cant figure it out


    I'm using excel 2007 i got 2 cells one cell got a scroll bar with lets say 5-6 options and one cell got numbers
    i want it to do a different calculation every time (well depends on what i will pick in the scroll cell )

  2. #2
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,929

    Re: different calculation every time depends on what i will pick in the scroll cell

    Hi, welcome to the forum

    Based on the minimal amount of info provided, it sounds like you need to look at using vlookup() or index/match

    If you still have a problem, upload a small (clean) sample workbook (not a pic) of what you are working with, and what your expected outcome would look like.
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  3. #3
    Registered User
    Join Date
    11-21-2014
    Location
    Russia
    MS-Off Ver
    2007-2013
    Posts
    8

    Re: different calculation every time depends on what i will pick in the scroll cell

    hey thanks for the fast reply
    i need to do this calculation

    1cell:number 2cell: where the calculation will be 3cell: where i got the scroll bar with this options (0-40,0-20,0-80)
    if i got in 3cell 0-40 do that in 2cell (1cell\1.4)
    if i got in 3cell 0-20 do that in 2cell (1cell\1.2) http://wikisend.com/download/544416/11.xlsx

  4. #4
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,929

    Re: different calculation every time depends on what i will pick in the scroll cell

    Can you upload your workbook here please
    To attach a file to your post,
    click advanced (next to quick post),
    scroll down until you see "manage file",
    click that and select "add files" (top right corner).
    click "select files" find your file, click "open" click "upload" click 'done" bottom right. click "submit reply"

    Once the upload is completed the file name will appear below the input boxes in this window.
    You can then close the window to return to the new post screen.

  5. #5
    Registered User
    Join Date
    11-21-2014
    Location
    Russia
    MS-Off Ver
    2007-2013
    Posts
    8

    Re: different calculation every time depends on what i will pick in the scroll cell

    11.xlsx here you go )

  6. #6
    Forum Moderator
    Join Date
    01-21-2014
    Location
    St. Joseph, Illinois U.S.A.
    MS-Off Ver
    Office 365 v 2403
    Posts
    13,406

    Re: different calculation every time depends on what i will pick in the scroll cell

    Does the attached explain anything about how those drop-downs can be part of a calculation?

    The ones you have are text and the RIGHT function strips off the last two numbers. When multiplied by your list of other numbers

    it is coerced into its numeric value. The calculations work from there.
    Attached Files Attached Files

  7. #7
    Registered User
    Join Date
    11-21-2014
    Location
    Russia
    MS-Off Ver
    2007-2013
    Posts
    8

    Re: different calculation every time depends on what i will pick in the scroll cell

    Quote Originally Posted by FlameRetired View Post
    Does the attached explain anything about how those drop-downs can be part of a calculation?

    The ones you have are text and the RIGHT function strips off the last two numbers. When multiplied by your list of other numbers

    it is coerced into its numeric value. The calculations work from there.
    the attached do not explain about the drop-downs

    i will upload another file with examples of the data i need to calculate i think it will be more clearer that way 11.xlsx

  8. #8
    Forum Moderator
    Join Date
    01-21-2014
    Location
    St. Joseph, Illinois U.S.A.
    MS-Off Ver
    Office 365 v 2403
    Posts
    13,406

    Re: different calculation every time depends on what i will pick in the scroll cell

    OK...try this one.
    Attached Files Attached Files

  9. #9
    Registered User
    Join Date
    11-21-2014
    Location
    Russia
    MS-Off Ver
    2007-2013
    Posts
    8

    Re: different calculation every time depends on what i will pick in the scroll cell

    is it different in ms 2007? coz i get sometimes wrong terraGIS Soil numbers like its fixed on a specific one

  10. #10
    Registered User
    Join Date
    11-21-2014
    Location
    Russia
    MS-Off Ver
    2007-2013
    Posts
    8

    Re: different calculation every time depends on what i will pick in the scroll cell

    in my table the first row it counts like the second one meaning if 0-40 1.2
    0-20 1.3
    when i pick 0-40 i get 1.3

  11. #11
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,929

    Re: different calculation every time depends on what i will pick in the scroll cell

    I suggest you create a small table with your criteria and their values...
    J
    K
    1
    terraGIS Soil
    2
    0-20
    1.8
    3
    0-40
    1.49
    4
    40-70
    5
    0-80

    Then you can use this, copied down, for the calc...
    =D2/VLOOKUP(F2,$J$2:$K$5,2,0)

    You can still use the Drop-down (thats's what it is called) in column F

  12. #12
    Registered User
    Join Date
    11-21-2014
    Location
    Russia
    MS-Off Ver
    2007-2013
    Posts
    8

    Thumbs up Re: different calculation every time depends on what i will pick in the scroll cell

    thanks i will try this out and let you know


    guys thx again for the help and the very fast reply

  13. #13
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,929

    Re: different calculation every time depends on what i will pick in the scroll cell

    Looking forward to hearing from you soon

  14. #14
    Registered User
    Join Date
    11-21-2014
    Location
    Russia
    MS-Off Ver
    2007-2013
    Posts
    8

    Re: different calculation every time depends on what i will pick in the scroll cell

    guys sorry for the late reply i got it
    i had a problem with the order of thing (1,2,3,4,5 ...) now i know that vlookup wants everything to be ordered
    also with the cell format but got it
    anyway guys thanks again for all the help FDibbins FlameRetired

  15. #15
    Forum Moderator
    Join Date
    01-21-2014
    Location
    St. Joseph, Illinois U.S.A.
    MS-Off Ver
    Office 365 v 2403
    Posts
    13,406

    Re: different calculation every time depends on what i will pick in the scroll cell

    You're welcome. Glad it helped.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Ms access Vba Save Data to xl depends upon 1 table pick & Depends 2 Upon fiterDate
    By breadwinner in forum Access Programming / VBA / Macros
    Replies: 14
    Last Post: 05-29-2014, 10:59 PM
  2. [SOLVED] need formula to get desired result from between two date and time depends upon condition
    By breadwinner in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 01-16-2014, 03:28 AM
  3. Replies: 7
    Last Post: 09-12-2013, 03:54 PM
  4. Replies: 5
    Last Post: 04-01-2011, 07:17 AM
  5. Excel 2007 : Pick-List pick fills in another cell
    By hpasso217 in forum Excel General
    Replies: 0
    Last Post: 02-28-2011, 05:38 PM

Bookmarks

Posting Permissions

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

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1