+ Reply to Thread
Results 1 to 5 of 5

Multiple if statement / run formula . Help needed

  1. #1
    Registered User
    Join Date
    07-28-2020
    Location
    SYDNEY
    MS-Off Ver
    Excel 2016
    Posts
    3

    Post Multiple if statement / run formula . Help needed

    Hi all,

    I trying to find a way to improve my excel sheet and make it more automated.

    Here is my question,

    Let's say I have the following table where I enter my data
    Capture.PNG

    The value of cell D is obtained by running an sumif.
    The data its going through is the following
    Capture.PNG

    What I am trying to do is , let's say A1 ='A' and B1=' SEMI(JOE)' , run the following formula " =500+((C1-12.5)*50))".

    Can someone guide me ?

    Thanks in advance for your help
    Attached Files Attached Files

  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: Multiple if statement / run formula . Help needed

    To start with, that is a nice use of SUMIFS, and I guess there is no chance of having duplicate entries in DATA? However, this is a better formula to use for that...
    =INDEX(DATA!$C$2:$C$13,MATCH(INPUT!A2&INPUT!B2,INDEX(DATA!$A$2:$A$13&DATA!$B$2:$B$13,0),0))

    For your actual question, Im not sure where you want to put that formula, but it sounds like you want something like...
    =IF(AND(A2="A",B2="semi(joe)"),500+((C2-12.5)*50),"")
    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
    07-28-2020
    Location
    SYDNEY
    MS-Off Ver
    Excel 2016
    Posts
    3

    Re: Multiple if statement / run formula . Help needed

    Thanks for the reply FDibbins.

    What I am trying to accomplish with that formula if

    Let's say

    A2= "A"
    B2=" SEMI(JOE)

    process the equation "500+((C2-12.5)*50" and return it in D2

    But I also want index or sumifs to run when the cell being compared doesn't match "A" and "SEMI(JOE).

    Hope I was able to clear a little bit of the confusion.

    Looking forward for your reply

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

    Re: Multiple if statement / run formula . Help needed

    OK so maybe...
    =IF(AND(A2="A",B2="semi(joe)"),500+((C2-12.5)*50),INDEX(DATA!$C$2:$C$13,MATCH(INPUT!A2&INPUT!B2,INDEX(DATA!$A$2:$A$13&DATA!$B$2:$B$13,0),0)))

  5. #5
    Registered User
    Join Date
    07-28-2020
    Location
    SYDNEY
    MS-Off Ver
    Excel 2016
    Posts
    3

    Re: Multiple if statement / run formula . Help needed

    FDibbins,

    You are a Genius.
    It working

    Thanks for your help

    Now let me try to understand the formula, so I can reapply it

+ 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. Multiple if formula is needed
    By marko737 in forum Excel General
    Replies: 2
    Last Post: 08-19-2019, 06:03 PM
  2. [SOLVED] Lookup Logic - Statement needed to evaluate multiple conditions
    By bdav1216 in forum Excel Formulas & Functions
    Replies: 15
    Last Post: 08-04-2019, 01:56 PM
  3. [SOLVED] Multiple “IF” formula needed
    By excelteam777 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 07-08-2016, 08:14 PM
  4. Issues with RAG IF statement - formula wizz needed!
    By el333 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 09-08-2015, 05:43 AM
  5. Help Needed - And/If Statement (Multiple Functions)
    By henrock24 in forum Excel General
    Replies: 1
    Last Post: 03-11-2015, 06:55 PM
  6. [SOLVED] SUMIFS statement needed to pull multiple data from the same column
    By onetoncrewcab in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 12-17-2014, 08:27 PM
  7. If Statement Formula Result Needed
    By Dexta_Dark in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 11-21-2008, 04:30 PM

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