+ Reply to Thread
Results 1 to 7 of 7

Excel Case/else structure math operations.

  1. #1
    Registered User
    Join Date
    09-02-2013
    Location
    USA
    MS-Off Ver
    Excel 2010
    Posts
    4

    Excel Case/else structure math operations.

    having issues doing this im in a class for this and not able to make this work will it will ask me what math operation i would like to do anybody that can help?

  2. #2
    Registered User
    Join Date
    09-02-2013
    Location
    USA
    MS-Off Ver
    Excel 2010
    Posts
    4

    Re: Excel Case/else structure math operations.

    Please Login or Register  to view this content.
    Please Login or Register  to view this content.
    Please Login or Register  to view this content.
    Last edited by arlu1201; 09-03-2013 at 09:51 AM.

  3. #3
    Forum Expert
    Join Date
    02-14-2009
    Location
    .
    MS-Off Ver
    ................
    Posts
    2,840

    Re: Excel Case/else structure math operations.

    Too many issues...
    • You call a function that doesn't exist.
    • The function to actually do the calculation is not called.
    • You have no way to input the required operation.
    • Syntax errors.
    • Other than a syntax error, your Case statement is correct
    • Declaring variables as integers could easily cause an overflow error.
    • Your post does not comply with the board rules regarding code tags.

    Perhaps a read of this would be more educational than someone just doing it for you

  4. #4
    Registered User
    Join Date
    09-02-2013
    Location
    USA
    MS-Off Ver
    Excel 2010
    Posts
    4

    Re: Excel Case/else structure math operations.

    well i got everything else to work up to the point of the program asking for what math operation to commit. So i had it programmed where i just entered the numbers and it added them but im just lost where i can get it to ask for which math operation to work

  5. #5
    Registered User
    Join Date
    09-02-2013
    Location
    USA
    MS-Off Ver
    Excel 2010
    Posts
    4

    Wink Re: Excel Case/else structure math operations.

    this is what i have working now and it does addition right away im just trying to make it ask for the math operation and can't find anything to led me towards it asking that one question.

    Please Login or Register  to view this content.
    Please Login or Register  to view this content.
    Please Login or Register  to view this content.
    Last edited by arlu1201; 09-03-2013 at 09:52 AM.

  6. #6
    Forum Contributor arlu1201's Avatar
    Join Date
    09-09-2011
    Location
    Bangalore, India
    MS-Off Ver
    Excel 2003 & 2007
    Posts
    19,166

    Re: Excel Case/else structure math operations.

    bigdog,

    Welcome to the forum.

    I have added code tags to your post. As per forum rule 3, you need to use them whenever you put any code in your post. Please add them in future. In order to put code tags, either type [CODE]Please [url=https://www.excelforum.com/login.php]Login or Register [/url] to view this content.[/CODE] at the end of it, OR you can highlight your code and click the # icon at the top of your post window.
    If I have helped, Don't forget to add to my reputation (click on the star below the post)
    Don't forget to mark threads as "Solved" (Thread Tools->Mark thread as Solved)
    Use code tags when posting your VBA code: [code] Your code here [/code]

  7. #7
    Forum Guru
    Join Date
    04-13-2005
    Location
    North America
    MS-Off Ver
    2002/XP and 2007
    Posts
    15,829

    Re: Excel Case/else structure math operations.

    Don't you simply need a third input box statement that asks the user for the operation type?
    Quote Originally Posted by shg
    Mathematics is the native language of the natural world. Just trying to become literate.

+ 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. [SOLVED] Math operations with data from LabVIEW in .TXT
    By bakito in forum Excel Formulas & Functions
    Replies: 10
    Last Post: 05-06-2013, 07:11 AM
  2. Excel Case/else structure math operations.
    By LadyB in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 03-14-2013, 01:58 AM
  3. math operations
    By stonecoldmike in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 04-17-2012, 05:53 PM
  4. Replies: 9
    Last Post: 02-01-2011, 01:41 AM
  5. Excel 2007 : math operations with text
    By djv0001 in forum Excel General
    Replies: 2
    Last Post: 02-05-2009, 05:14 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