+ Reply to Thread
Results 1 to 6 of 6

selecting a result from multi conditions

  1. #1
    Registered User
    Join Date
    10-21-2008
    Location
    Delhi, India
    MS-Off Ver
    MS 365 Subscription Insider (Windows 11 64-bit)
    Posts
    45

    Thumbs up selecting a result from multi conditions

    Dear Friends,

    I have attached a file, in which i need to get the value for IHC from a table using formula as the conditions will vary from time to time. The table is only a sample.. actually it had much more.

    Thanks in anticipation.

    Ranbir
    Attached Files Attached Files
    Last edited by Ranbir; 05-14-2009 at 08:20 AM.

  2. #2
    Forum Expert
    Join Date
    06-18-2004
    Location
    Canada
    MS-Off Ver
    Office 2016
    Posts
    1,474

    Re: selecting a result from multi conditions

    Try the following formula, which needs to be confirmed with CONTROL+SHIFT+ENTER...

    =INDEX(C15:F19,MATCH(1,IF(ISNUMBER(SEARCH(B2,A15:A19)),IF(B15:B19=B3,1)),0),MATCH(B4,C13:F13,0)+(B5="> 12 Mt to <=20 Mt"))

    Note that if A17 contains MAERSK instead of MAERSK LINE, you can replace...

    ISNUMBER(SEARCH(B2,A15:A19))

    with

    A15:A19=B2

    Also, cell C13, which contains DADRI, also contains a trailing space. You'll need to remove it, otherwise there won't be an exact match and the formula will return #N/A.

  3. #3
    Forum Contributor mubashir aziz's Avatar
    Join Date
    03-18-2009
    Location
    Lahore, Pakistan
    MS-Off Ver
    MS Office 2013
    Posts
    533

    Re: selecting a result from multi conditions

    Just see the attach file i've given some suggestion which might be helpful for you ... i always tried to keep data just like a data base which is help full for sake of any reporting especially you can use a very useful tool Pivot Table ...... anyway just check it out ....
    Attached Files Attached Files

  4. #4
    Registered User
    Join Date
    10-21-2008
    Location
    Delhi, India
    MS-Off Ver
    MS 365 Subscription Insider (Windows 11 64-bit)
    Posts
    45

    Re: selecting a result from multi conditions

    Dear Aziz,

    seems the suggestion given by you is working.. i will put the same in my actual worksheet and give you the feedback.... meanwhile thanks for the prompt reply.

    Ranbir

  5. #5
    Forum Expert
    Join Date
    06-18-2004
    Location
    Canada
    MS-Off Ver
    Office 2016
    Posts
    1,474

    Re: selecting a result from multi conditions

    Have you tried the solution I offered? I believe it should return the desired results without having to re-arrange your data, if that's your preference. I've attached a sample file for you to look at.
    Attached Files Attached Files

  6. #6
    Registered User
    Join Date
    10-21-2008
    Location
    Delhi, India
    MS-Off Ver
    MS 365 Subscription Insider (Windows 11 64-bit)
    Posts
    45

    Re: selecting a result from multi conditions

    Dear Domenic,

    I tried the both the solutions offered by you and aziz, since the prob i mentioned is 1 part, i am trying you solution on the other part also... thats why i didn't replied.... will get back to you once completed my assignment.....

    thanks for your early and prompt reply....

    this section is still open for me as my job is still half finished....

    Ranbir

+ 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