Closed Thread
Results 1 to 3 of 3

improving if-else HELP!

Hybrid View

  1. #1
    Registered User
    Join Date
    03-27-2017
    Location
    No
    MS-Off Ver
    Yes
    Posts
    30

    improving if-else HELP!

    Is there a quick and easy way to get

    =IF($E$93=1,A3,IF($E$93=2,B3,IF($E$93=3,E3,IF($E$93=4,H3,IF($E$93=5,I3,IF($E$93=6,G3,IF($E$93=7,J3,IF($E$93=8,K3,IF($E$93=10,S3,IF($E$93=11,T3,""))))))))))

    to work better?

    I did this in the formula bar, but Im about to add more, and it's getting cumbersome, maybe some VBA?

  2. #2
    Forum Guru bakerman2's Avatar
    Join Date
    10-03-2012
    Location
    Antwerp, Belgium
    MS-Off Ver
    MSO Home and Business 2024
    Posts
    7,338

    Re: improving if-else HELP!

    You could use Select Case in VBA but you would have to put that code in an Event-macro to trigger the execution.
    The next question then would be when do you want the cell with the formula in it to be evaluated ? When you change the value in E93 or ...
    Avoid using Select, Selection and Activate in your code. Use With ... End With instead.
    You can show your appreciation for those that have helped you by clicking the * at the bottom left of any of their posts.

  3. #3
    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
    53,048

    Re: improving if-else HELP!

    Welcome to the Forum, unfortunately this is a duplicate post and as such will now be closed, you may continue in your other thread.

    Thread Closed.

    https://www.excelforum.com/excel-gen...else-help.html
    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

Closed Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. [SOLVED] Need Help improving my worksheet
    By tsdpurdue in forum Excel Formulas & Functions
    Replies: 12
    Last Post: 09-02-2016, 07:31 AM
  2. Need help improving Job efficiency
    By popovgor in forum Excel General
    Replies: 5
    Last Post: 03-07-2014, 01:11 PM
  3. [SOLVED] Improving formula
    By jantonio in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 02-01-2013, 11:53 AM
  4. Improving my loops
    By EntropyUK in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 01-22-2013, 06:35 AM
  5. Help improving performance?
    By aaronsher in forum Excel General
    Replies: 12
    Last Post: 01-25-2011, 11:21 AM
  6. Improving this set of code.
    By Ra21V12eN in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 12-11-2008, 06:21 PM
  7. [SOLVED] Improving use of Worksheets
    By TKeune in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 02-11-2006, 07:10 AM

Tags for this Thread

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