+ Reply to Thread
Results 1 to 7 of 7

Logical formula in multiple criteria

  1. #1
    Registered User
    Join Date
    12-26-2008
    Location
    India
    MS-Off Ver
    2016
    Posts
    22

    Logical formula in multiple criteria

    Dear Moderators
    Many thanks for your support in providing the necessary help in constructing the automated files.

    I am in middle of constructing a formula please see the attached file:


    Need help in the following criteria:

    1 If E7 is "FD" then, the H7 can exceeds maximum limit of 80 then in cell I7 it should give result of only excess km will be there
    2 In the same way If E7 is "HD" then, the H7 exceeds maximum limit of 40 then in cell I7 it should give result of only excess km
    3 In the same way If E7 is "FD" then, the M7 can show the extra hrs if it is >8 hrs
    4 In the same way If E7 is "HD" then, the M7 can show the extra hrs if it is >4 hrs



    Appreciate you earliest help in this regards

    Amul
    Attached Files Attached Files

  2. #2
    Forum Guru Kaper's Avatar
    Join Date
    12-14-2013
    Location
    Warsaw, Poland
    MS-Off Ver
    most often: Office 365 in Windows environment
    Posts
    8,868

    Re: Logical formula in multiple criteria

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

    and copy down.
    H7 similar:
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    MAX is easier to use than IF in this case.
    Why?
    Instead of IF(X>0,X,0) we can use MAX(X,0)
    and both formulas for X < = 0 will return 0 and for X > 0 just X
    Best Regards,

    Kaper

  3. #3
    Forum Expert tim201110's Avatar
    Join Date
    10-23-2011
    Location
    Russia
    MS-Off Ver
    2016, 2019
    Posts
    2,357

    Re: Logical formula in multiple criteria

    =IF(H7>=HLOOKUP(E7,$C$1:$D$3,2),H7-HLOOKUP(E7,$C$1:$D$3,2),"0") for I
    =IF(((K7-J7))*24>HLOOKUP(E7,$C$1:$D$3,3),((K7-J7))*24-HLOOKUP(E7,$C$1:$D$3,3),0) for M

  4. #4
    Forum Expert
    Join Date
    12-14-2012
    Location
    London England
    MS-Off Ver
    MS 365 Office Suite.
    Posts
    8,448

    Re: Logical formula in multiple criteria

    Formula for H7

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


    Formula for M7

    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Last edited by mehmetcik; 07-15-2017 at 10:30 AM.
    My General Rules if you want my help. Not aimed at any person in particular:

    1. Please Make Requests not demands, none of us get paid here.

    2. Check back on your post regularly. I will not return to a post after 4 days.
    If it is not important to you then it definitely is not important to me.

  5. #5
    Registered User
    Join Date
    12-26-2008
    Location
    India
    MS-Off Ver
    2016
    Posts
    22

    Re: Logical formula in multiple criteria

    Quote Originally Posted by Kaper View Post
    I7:
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    and copy down.
    H7 similar:
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    MAX is easier to use than IF in this case.
    Why?
    Instead of IF(X>0,X,0) we can use MAX(X,0)
    and both formulas for X < = 0 will return 0 and for X > 0 just X
    Dear Kaper
    Many thanks it worked..........
    regards/amul

  6. #6
    Registered User
    Join Date
    12-26-2008
    Location
    India
    MS-Off Ver
    2016
    Posts
    22

    Re: Logical formula in multiple criteria

    Quote Originally Posted by tim201110 View Post
    =IF(H7>=HLOOKUP(E7,$C$1:$D$3,2),H7-HLOOKUP(E7,$C$1:$D$3,2),"0") for I
    =IF(((K7-J7))*24>HLOOKUP(E7,$C$1:$D$3,3),((K7-J7))*24-HLOOKUP(E7,$C$1:$D$3,3),0) for M
    Dear Tim..
    thanks a lot.. it also works...
    regards/amul

  7. #7
    Registered User
    Join Date
    12-26-2008
    Location
    India
    MS-Off Ver
    2016
    Posts
    22

    Re: Logical formula in multiple criteria

    Quote Originally Posted by mehmetcik View Post
    Formula for H7

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


    Formula for M7

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

    many thanks...
    it works too......
    thank you so much.... appreciated your efforts...
    regards
    amul

+ 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. Multiple Logical Formula
    By amuljha in forum Excel General
    Replies: 5
    Last Post: 07-05-2017, 02:49 PM
  2. Perform Logical Equivilent of Index Match Array look up with multiple criteria in VBA
    By MichaelDoughertyJr in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 03-28-2016, 04:03 PM
  3. multiple criteria/logical tests required.
    By Imamu in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 05-28-2013, 08:57 AM
  4. Multiple outcomes from a logical formula
    By JoeHan in forum Excel General
    Replies: 6
    Last Post: 05-24-2012, 05:54 PM
  5. Logical formula for multiple input
    By sagulolo in forum Excel General
    Replies: 4
    Last Post: 03-07-2012, 06:57 PM
  6. Logical Function for three criteria?
    By CardioGirl in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 12-13-2006, 12:01 PM
  7. [SOLVED] Formula checking multiple worksheets:logical operator
    By sonic-the-mouse in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 06-06-2005, 02: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