+ Reply to Thread
Results 1 to 7 of 7

3 multiple conditions with multiple criteria formula help

  1. #1
    Registered User
    Join Date
    11-28-2013
    Location
    Ontario, Canada
    MS-Off Ver
    Excel 2010
    Posts
    3

    3 multiple conditions with multiple criteria formula help

    Types of shippers:
    Fedex
    Purolator
    Midland

    Locations:
    Ottawa
    Vancouver
    Montreal
    Brampton

    Accounts:
    Purolator
    Ottawa-456789
    Vancouver-987452
    Montreal-741258
    Brampton-951357

    Fedex
    Ottawa-F789654
    Vancouver-F456456
    Montreal-F963147
    Brampton-F654154




    I need help creating a formula that will pretty much help with entering the above

    ex. IF purolater is typed in cell A2 and Ottawa is typed in B2 then C2 will show 456789
    IF Fedex it typed in A3 and in cell B3 has Ottawa again then C3 will show F789654
    Last edited by rmnk101190; 11-28-2013 at 05:25 PM.

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

    Re: 3 multiple conditions with multiple criteria formula help

    Hi and welcome to the forum

    Im sure someone will come up with a shorter version, but until then...

    If yoy create a small table, like this...
    A
    B
    24
    Accounts:
    25
    Purolator Fedex
    26
    Ottawa-456789 Ottawa-F789654
    27
    Vancouver-987452 Vancouver-F456456
    28
    Montreal-741258 Montreal-F963147
    29
    Brampton-951357 Brampton-F654154

    Then in C2, copied down...
    =RIGHT(INDEX($A$25:$B$29,MATCH(B2&"*",$A$25:$A$29,0),MATCH($A2,$A$25:$B$25,0)),LEN(INDEX($A$25:$B$29,MATCH(B2&"*",$A$25:$A$29,0),MATCH($A2,$A$25:$B$25,0)))-(FIND("-",INDEX($A$25:$B$29,MATCH(B2&"*",$A$25:$A$29,0),MATCH($A2,$A$25:$B$25,0)),1)))
    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
    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,926

    Re: 3 multiple conditions with multiple criteria formula help

    Actually, if you can simplify the table to this...
    A
    B
    C
    31
    Purolator Fedex
    32
    Ottawa 456789 F789654
    33
    Vancouver 987452 F456456
    34
    Montreal 741258 F963147
    35
    Brampton 951357 F654154


    Then you san reduce that formula to this...
    =INDEX($A$31:$C$35,MATCH($B2,$A$31:$A$35,0),MATCH($A2,$A$31:$C$31,0))

  4. #4
    Registered User
    Join Date
    11-28-2013
    Location
    Ontario, Canada
    MS-Off Ver
    Excel 2010
    Posts
    3

    Re: 3 multiple conditions with multiple criteria formula help

    Thank you!

  5. #5
    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,926

    Re: 3 multiple conditions with multiple criteria formula help

    you'r welcome. If this answered your question, please take a moment to mark the thread as "solved" - it helps keep things neat and tidy lol, and consider adding the reputation to those that helped (see points 2 & 3 below my 1st post to you)

  6. #6
    Registered User
    Join Date
    11-28-2013
    Location
    Ontario, Canada
    MS-Off Ver
    Excel 2010
    Posts
    3

    Re: 3 multiple conditions with multiple criteria formula help

    The formula you've given me is giving some problems. Or I don't understand how to manipulate it.

    Untitled.png

    Here is my set up.
    I would like to place a formula into column H so that when Column B has Purolator or Fedex or Midland and when Bill To has (London, or, Montreal, or Winnipeg) it will place the appropriate account number.
    that way I don't have to do anything thinking every time I input. I just type who shipped and where to and it will tell me the account.

    Can you explain the best way to do this?

  7. #7
    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,926

    Re: 3 multiple conditions with multiple criteria formula help

    Please do not upload a picture of your file...rather, upload a sample of your workbook, showing what data you are working with, a few samples of your expected outcome is (manually entered is ok) and how you arrived at that. (exclude sensitive info). Pictures are pretty much impossible to edit, and no-one wants to re-type your data for you Also, not all members can upload picture files (Company firewalls and stuff)

+ 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. VBA - Lookup with multiple conditions/criteria
    By dluhut in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 05-02-2013, 12:42 PM
  2. VBA - Lookup with multiple conditions/criteria
    By dluhut in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 05-02-2013, 09:21 AM
  3. [SOLVED] Syntax for formula that uses multiple conditions inside of multiple IF statements
    By njmiller31 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 04-02-2013, 11:55 AM
  4. Criteria With Multiple Conditions
    By patrickargao in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 04-04-2012, 11:31 PM
  5. How to satisfy multiple conditions using multiple criteria
    By binkatron5000 in forum Excel General
    Replies: 13
    Last Post: 10-16-2009, 06:55 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