+ Reply to Thread
Results 1 to 5 of 5

How to create formula including three different possible base numbers and two possible sum

  1. #1
    Registered User
    Join Date
    12-12-2015
    Location
    Anchorage, AK
    MS-Off Ver
    2013 Office
    Posts
    12

    How to create formula including three different possible base numbers and two possible sum

    This will be tricky to explain but hopefully easy to answer. I have three cells each requiring a "Y" to activate by =IF function; only one of these cells will activate at a time, and so the formula must function as a three-way switch, determining which base number to use; if none of these are active, the formula must read "5". After this is done, there are two cells that give a 1 or 0, also based on =IF functions. These two cells must be summed together with whichever base is selected from the previous switch function.

    I have achieved the switch by way of a series of =IF functions which read as: =IF(Meridian!J17="Y",6,IF(Osiris!J5="Y",6,IF(Osiris!J6="Y",4,5)))

    The =SUM formula is too easy to bother posting.

    What I need is a way to combine these around the parameters specified above. Any help would be greatly appreciated.

  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: How to create formula including three different possible base numbers and two possible

    Hi, welcome to the forum

    You are a little vague about what the "base" will be, and is there any relation between the 3 bases?

    See if this will get you started?
    A
    B
    C
    D
    1
    Base1 Base2 Base3
    2
    10
    20
    30
    3
    10
    y

    A3=IFERROR(INDEX($B$2:$D$2,MATCH("y",B3:D3,0)),5)

    If that doesnt help, 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
    Valued Forum Contributor
    Join Date
    12-28-2014
    Location
    NSW, Australia
    MS-Off Ver
    MS365
    Posts
    604

    Re: How to create formula including three different possible base numbers and two possible

    That is a little confusing Diaxus. I can't see how your existing formula doesn't do exactly what you asked......except to add the other 2 cells in.
    If the other two "1 or 0" cells were A1 and B1 then:-

    Please Login or Register  to view this content.
    Last edited by Beamernsw; 12-13-2015 at 04:48 AM.

  4. #4
    Registered User
    Join Date
    12-12-2015
    Location
    Anchorage, AK
    MS-Off Ver
    2013 Office
    Posts
    12

    Re: How to create formula including three different possible base numbers and two possible

    @FDibbins,
    Well, the base will be one of three possibilities, and Beamernsw is correct in saying that my =IF formula does function as the switch between them. Each possibility is really a different source, and these sources amount to the numerical values 6, 6, or 4. While two of these are 6, they come from separate sources and so must be accounted separately.

    Essentially, what I want is a formula that can operate as switch between these possible bases, and then also add the two additional sums if applicable, all in one formula. You could say this is an exercise in learning the intricacies of Excel.

    I will look into your proposed formula, and get back to you on how it works.

    Thank you for the warm welcome, and for your efforts in helping me

  5. #5
    Registered User
    Join Date
    12-12-2015
    Location
    Anchorage, AK
    MS-Off Ver
    2013 Office
    Posts
    12

    Re: How to create formula including three different possible base numbers and two possible

    Quote Originally Posted by Beamernsw View Post
    That is a little confusing Diaxus. I can't see how your existing formula doesn't do exactly what you asked......except to add the other 2 cells in.
    If the other two "1 or 0" cells were A1 and B1 then:-

    Please Login or Register  to view this content.
    Can it really be so simple? I tried incorporating =SUM every way I could think of. I simply wasn't aware that anything could be added to the formula after all parenthesis. I think my question betrays my ignorance.

    Thanks for your help

+ 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: 1
    Last Post: 10-16-2013, 02:46 PM
  2. [SOLVED] Sum of numbers in none Base 10
    By neil40 in forum Excel Charting & Pivots
    Replies: 10
    Last Post: 09-10-2013, 05:21 AM
  3. [SOLVED] How to create Pdf filename base on ws Range.Value
    By tuongtu3 in forum Excel Programming / VBA / Macros
    Replies: 11
    Last Post: 12-10-2012, 11:28 PM
  4. Replies: 3
    Last Post: 04-09-2012, 02:53 PM
  5. Create base email.
    By rfhall50 in forum Outlook Programming / VBA / Macros
    Replies: 4
    Last Post: 06-16-2009, 06:57 PM
  6. [SOLVED] I need to create a data base
    By Kernow1962 in forum Excel General
    Replies: 2
    Last Post: 08-06-2006, 12:05 PM
  7. How do I use base 256 numbers?
    By JonMartin in forum Excel General
    Replies: 1
    Last Post: 06-15-2006, 04:55 PM
  8. create a list base on another worksheet
    By tikchye_oldLearner57 in forum Excel General
    Replies: 2
    Last Post: 05-17-2006, 09: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