+ Reply to Thread
Results 1 to 6 of 6

Multiple conditions based on ranges

Hybrid View

  1. #1
    Registered User
    Join Date
    12-22-2014
    Location
    Australia
    MS-Off Ver
    2016
    Posts
    89

    Multiple conditions based on ranges

    Hi,

    In the attached sheet I need a formula in col B based on conditions mentioned adjacent.

    Can anybody please help
    Attached Files Attached Files

  2. #2
    Forum Guru samba_ravi's Avatar
    Join Date
    07-26-2011
    Location
    Hyderabad, India
    MS-Off Ver
    Excel 2021
    Posts
    8,940

    Re: Multiple conditions based on ranges

    b2=IF(C2="AM",LOOKUP(A2,{1,12,13}/24,{"On Time","12pm - 1 pm","After 1pm"}),LOOKUP(A2,{0,15,16}/24,{"By 3pm","3pm - 4pm","After 4pm"}))
    try this and copy towards down
    Samba

    Say thanks to those who have helped you by clicking Add Reputation star.

  3. #3
    Forum Expert avk's Avatar
    Join Date
    07-12-2007
    Location
    India
    MS-Off Ver
    Microsoft Office 2013
    Posts
    3,279

    Re: Multiple conditions based on ranges

    Dear logisticsexcel, Refer attach file. In this file i have calculate with two criteria one is "AM" & "PM"
    Second is based on "A" column mentioned time with IF AND formula.
    Attached Files Attached Files


    atul


    If my answer (or that of other members) has helped you, please say "Thanks" by clicking the Add Reputation button at the foot of one of their posts.

    Also: if your problem is solved, please take the time to mark your thread as SOLVED by going to the top of your first post, selecting "Thread Tools" and then "Mark thread as solved".

  4. #4
    Forum Moderator
    Join Date
    01-21-2014
    Location
    St. Joseph, Illinois U.S.A.
    MS-Off Ver
    Office 365 V 2503
    Posts
    13,708

    Re: Multiple conditions based on ranges

    Similar to nflsales this solution uses 2 lookup tables. Then the formula in D2 and copied down.
    Formula: copy to clipboard
    =IF(C2="AM",LOOKUP(A2,$N$1:$O$3),LOOKUP(A2,$Q$1:$R$4))
    Attached Files Attached Files
    Dave

  5. #5
    Registered User
    Join Date
    12-22-2014
    Location
    Australia
    MS-Off Ver
    2016
    Posts
    89

    Re: Multiple conditions based on ranges

    Thanks all.

    All your solutions work perfect.

  6. #6
    Forum Moderator
    Join Date
    01-21-2014
    Location
    St. Joseph, Illinois U.S.A.
    MS-Off Ver
    Office 365 V 2503
    Posts
    13,708

    Re: Multiple conditions based on ranges

    Good deal. You're welcome, and thanks for the feedback and added rep.

+ 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. Sum if based on ranges of conditions
    By thomasms90 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 12-15-2015, 10:53 AM
  2. Sum Multiple Different Ranges or Conditions
    By meghs918 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 03-29-2015, 02:25 PM
  3. Concatenate cells or ranges based on conditions
    By andrewdaus in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 10-01-2009, 06:45 PM
  4. Replies: 13
    Last Post: 07-08-2009, 04:27 PM
  5. Multiple Ranges & Conditions
    By WebXcelMan in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 08-28-2007, 04:06 PM
  6. [SOLVED] Add cells from a range based on 2 conditions from 2 other ranges
    By in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 09-06-2005, 04:05 AM
  7. Add cells from a range based on 2 conditions from 2 other ranges
    By Kelly in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 07-07-2005, 03: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