+ Reply to Thread
Results 1 to 9 of 9

Multiple IF functions

  1. #1
    Registered User
    Join Date
    01-17-2013
    Location
    Chengdu, China
    MS-Off Ver
    Excel 2007
    Posts
    15

    Multiple IF functions

    I am trying to read the data from 2 cells and if both criteria are met to enter something into a new cell, i can use the IF function to read the data from one cell, but I was wondering how i would read from both and only display in the new cell if both are met.

  2. #2
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: Multiple IF functions

    Try something like this...

    Let's assume we want to enter the number 10 in cell C1 if cell A1 = X and cell B1 = Y. If either condition is not met then leave cell C1 blank.

    Enter this formula in cell C1:

    =IF(AND(A1="X",B1="Y"),10,"")
    Biff
    Microsoft MVP Excel
    Keep It Simple Stupid

    Let's Go Pens. We Want The Cup.

  3. #3
    Forum Guru benishiryo's Avatar
    Join Date
    03-25-2011
    Location
    Singapore
    MS-Off Ver
    Excel 2013
    Posts
    5,156

    Re: Multiple IF functions

    hi dmeasthope, welcome to the forum. say the 2 cells are A1 & B1. and criteria is that A1 must be "ABC" & B1 must be "XYZ" for it to read "Yes". otherwise, "No". then try:
    =IF(AND(A1="ABC",B1="XYZ"),"Yes","No")

    Edit: sorry Valko. i refreshed the page but didnt see your post

    Thanks, if you have clicked on the * and added our rep.

    If you're satisfied with the answer, click Thread Tools above your first post, select "Mark your thread as Solved".

    "Contentment is not the fulfillment of what you want, but the realization of what you already have."


    Tips & Tutorials I Compiled | How to Get Quick & Good Answers

  4. #4
    Registered User
    Join Date
    01-17-2013
    Location
    Chengdu, China
    MS-Off Ver
    Excel 2007
    Posts
    15

    Re: Multiple IF functions

    Thats great, just another quick one it now displays FALSE if the criteria is not met, is there any way of getting it to display nothing?

  5. #5
    Registered User
    Join Date
    01-17-2013
    Location
    Chengdu, China
    MS-Off Ver
    Excel 2007
    Posts
    15

    Re: Multiple IF functions

    Sorry just seen the other post which answers my question, thanks all for the help
    Last edited by dmeasthope; 01-17-2013 at 11:18 PM.

  6. #6
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: Multiple IF functions

    You're welcome. Thanks for the feedback!

  7. #7
    Registered User
    Join Date
    01-18-2013
    Location
    Baltimore
    MS-Off Ver
    Excel 2010
    Posts
    3

    Re: Multiple IF functions

    I have the the sum of multiple rows of data displaying on a summary page. I want certain values to be subtracted out of that total if certain the description in the preceeding column meets a certain criteria
    So for example:

    Column A Column B Column C
    Sugar Brown 120
    Sugar Powder 120
    Flour All purpose 120
    Flour Self Rising 120
    Eggs EARMARK 500


    the sum of column C is 980
    I also want the sum of column C minus the value of anything numbers whose description in Column B equals "EARMARK" (the total would be 480)

  8. #8
    Registered User
    Join Date
    01-18-2013
    Location
    Baltimore
    MS-Off Ver
    Excel 2010
    Posts
    3

    Re: Multiple IF functions

    Sorry the columns didn't stay in place

  9. #9
    Registered User
    Join Date
    01-18-2013
    Location
    Baltimore
    MS-Off Ver
    Excel 2010
    Posts
    3

    Re: Multiple IF functions

    This formula would draw information into a summary worksheet, from multiple worksheets with different titles.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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