+ Reply to Thread
Results 1 to 10 of 10

Multiple IF ??

  1. #1
    Forum Contributor
    Join Date
    04-06-2017
    Location
    Wolverhampton
    MS-Off Ver
    Office 365
    Posts
    471

    Multiple IF ??

    Hello

    i want to enter 1 number in A1 and text in A2 and return a spacific text in A3

    i cant seem to combine 2 IF (Please see attched)
    =IF(B1="Paul","Class 1")

    Paul
    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,938

    Re: Multiple IF ??

    So, what do you want the answer to 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
    Forum Guru
    Join Date
    08-05-2004
    Location
    NJ
    MS-Off Ver
    365
    Posts
    13,582

    Re: Multiple IF ??

    You would nest them like so

    =IF(B1="paul", "Class 1", IF(B1="Richard", "Class 2", IF(....)

    How many names are there. Maybe a VLOOKUP would work better for you.
    ChemistB
    My 2?

    substitute commas with semi-colons if your region settings requires
    Don't forget to mark threads as "Solved" (Edit First post>Advanced>Change Prefix)
    If I helped, Don't forget to add to my reputation (click on the little star at bottom of this post)

    Forum Rules: How to use code tags, mark a thread solved, and keep yourself out of trouble

  4. #4
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,910

    Re: Multiple IF ??

    What else do you want the formula to do? I don't understand what the second IF statement would need to check. Please be specific (your attachment doesn't really help).
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

  5. #5
    Forum Contributor
    Join Date
    04-06-2017
    Location
    Wolverhampton
    MS-Off Ver
    Office 365
    Posts
    471

    Re: Multiple IF ??

    i want to enter 5000003 in A1 and Paul in A2, I theses both are entered i want C1 to say Class 1

    if they are not entered correctly return 0

  6. #6
    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,938

    Re: Multiple IF ??

    Im sure there is more to this, but this gives you what you asked for...


    =if(and(A1=50000003,B1="Paul),"Class 1",0)
    Last edited by FDibbins; 04-11-2017 at 02:29 PM.

  7. #7
    Banned User!
    Join Date
    02-05-2015
    Location
    San Escobar
    MS-Off Ver
    any on PC except 365
    Posts
    12,168

    Re: Multiple IF ??

    maybe: IF(AND(A1=5000003,A2="Paul"),"Class 1",0)

  8. #8
    Forum Contributor
    Join Date
    04-06-2017
    Location
    Wolverhampton
    MS-Off Ver
    Office 365
    Posts
    471

    Re: Multiple IF ?? (Solved)

    thanks FDibbins. Worked well

  9. #9
    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,938

    Re: Multiple IF ??

    happy to help

    (that is a VERY specific formula, and like I said, Im sure there is more to this than what you have said - probably see you back again soon )

  10. #10
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: Multiple IF ??

    Hi,

    Using your table in A1:C6
    and 500000 in E1 and Paul in E2 then one way is with the Array formula

    Formula: copy to clipboard
    Please Login or Register  to view this content.


    Note this is an array formula and must be entered with Ctrl-Shift-Enter. When you do in the formula bar you'll see the formula surrounded by { }
    Richard Buttrey

    RIP - d. 06/10/2022

    If any of the responses have helped then please consider rating them by clicking the small star icon below the post.

+ 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. [SOLVED] SUMPRODUCT of multiple columns with multiple criteria over multiple sheets
    By BellyGas in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 09-16-2015, 08:27 AM
  2. Replies: 2
    Last Post: 05-26-2015, 07:29 PM
  3. Replies: 20
    Last Post: 03-13-2013, 04:15 PM
  4. [SOLVED] Multiple issues - Multiple IF staements with multiple answers, or other coding.
    By inzanesrt4 in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 01-12-2013, 08:53 PM
  5. [SOLVED] Large spreadsheet; multiple scores on multiple dates for multiple students
    By MelindaCapri in forum Excel Charting & Pivots
    Replies: 1
    Last Post: 11-16-2012, 06:03 PM
  6. Replies: 5
    Last Post: 11-04-2010, 06:02 AM
  7. [SOLVED] view multiple files in multiple windows on multiple screens.
    By tcom in forum Excel General
    Replies: 7
    Last Post: 09-15-2005, 05:05 PM

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