+ Reply to Thread
Results 1 to 3 of 3

Formula for multiple conditions only returns values for first condition

  1. #1
    Registered User
    Join Date
    09-30-2013
    Location
    Buckinghamshire, England
    MS-Off Ver
    Excel 2010
    Posts
    1

    Formula for multiple conditions only returns values for first condition

    I am trying to fix a formula and it's driving me mad.

    I have a spreasheet with several tabs. On one tab I have a list of names with the values 1 or 2 alongside them.

    On another tab I have a set of values for each entry.

    Tab 1
    Ben 1
    Bob 2
    Tom 1
    Sam 3

    Tab 2
    Ben 3 4 6
    Bob 3 5
    Tom 4 5 7
    Sam 4

    I need the formula to calculate the 3rd-1st value on tab 2 when the tab 1 value is 1, the 3rd-2nd value on tab 2 when the tab 1 value is 2 and to show no value when the tab 1 value is 3.

    I've so far got:
    Please Login or Register  to view this content.
    But it only works for the first condition. Any help greatly appreciated as I am fairly new to excel and am trying to teach myself. :-)
    Last edited by Kazzza; 09-30-2013 at 06:19 PM. Reason: Title

  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,939

    Re: If formula

    [Hi and welcome to the forum

    B]Administrative Note:[/B]
    • We would love to help you with your query, but first, before we can proceed…
    • Please see Forum Rule #1 about proper thread title
    • Please PM me when complete and this post will be removed which will reset the replies to zero…

      To change a Title on your post, click EDIT on you're 1st post, then Go Advanced and change your title
    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
    Forum Expert Sam Capricci's Avatar
    Join Date
    06-14-2012
    Location
    Palm Harbor, Florida
    MS-Off Ver
    16.84 for Mac MS 365
    Posts
    8,499

    Re: Formula for multiple conditions only returns values for first condition

    I can't say I can solve your issue but, if it is returning the first result and stops that is because it found that result then stopped. You may need to incorporate AND into your equation. If(and(condition1, condition2, etc))
    To get more help you might have to post an example worksheet with your desired results.
    Make contributors happy, click on the "* Add Reputation" as a way to say thank you.
    Sam Capricci

+ 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. Replies: 6
    Last Post: 10-08-2009, 03:45 AM

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