+ Reply to Thread
Results 1 to 3 of 3

Excel 2007 - 3 Logical Tests?

  1. #1
    Registered User
    Join Date
    10-11-2008
    Location
    florida
    Posts
    2

    Excel 2007 - 3 Logical Tests?

    Hello, I am working on a homework assignment, the books method was crap so I did my own method. I am almost done except for 1 last thing. I cannot find any function that will allow for 3 logical tests. I have a screen shot here explaining what I need to happen.

    \1

    The only function I could think of to try was:

    Please Login or Register  to view this content.
    As you can see the IF function only allows for a single logical test. I have 3 logical operators im working with here.
    Last edited by castout85; 10-11-2008 at 05:16 PM.

  2. #2
    Forum Contributor VBA Noob's Avatar
    Join Date
    04-25-2006
    Location
    London, England
    MS-Off Ver
    xl03 & xl 07(Jan 09)
    Posts
    11,988
    Try

    =IF(B15="Standard 9.50",9.5,IF(B15="Express 14.50",14.5,IF(B15="Overnight 18.50",18.5,"")))
    or

    =IF(LEFT(B15,FIND(" ",B15)-1)="Standard",RIGHT(B15,LEN(B15)-FIND(" ",B15)),IF(LEFT(B15,FIND(" ",B15)-1)="Overnight",RIGHT(B15,LEN(B15)-FIND(" ",B15)),IF(LEFT(B15,FIND(" ",B15)-1)="Express",RIGHT(B15,LEN(B15)-FIND(" ",B15)))))
    VBA Noob
    _________________________________________


    Credo Elvem ipsum etian vivere
    _________________________________________
    A message for cross posters

    Please remember to wrap code.

    Forum Rules

    Please add to your signature if you found this link helpful. Excel links !!!

  3. #3
    Registered User
    Join Date
    10-11-2008
    Location
    florida
    Posts
    2
    worked

    Please Login or Register  to view this content.
    thanks man!!!

+ 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. Replies: 0
    Last Post: 09-11-2008, 02:03 AM
  2. Replies: 0
    Last Post: 09-26-2007, 11:52 AM
  3. Excel 2007 - Worksheet behaviour
    By bungaree in forum Excel General
    Replies: 2
    Last Post: 09-21-2007, 10:13 PM
  4. Import one Excel file into another using Excel 2007
    By mcluever in forum Excel General
    Replies: 0
    Last Post: 09-21-2007, 04:40 PM
  5. Selecting a range of cells - Excel 2007
    By brade in forum Excel General
    Replies: 1
    Last Post: 09-17-2007, 01:09 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