Closed Thread
Results 1 to 8 of 8

Question answered >> If + And Formula

  1. #1
    Registered User
    Join Date
    11-16-2006
    Posts
    4

    Question answered >> If + And Formula

    Hi, I need a formula that will take 7 numbers (example 1,1,1,1,2,2,2), through out one of the high numbers and one of the low numbers then add up the other 5 numbers for a sum. Can someone help me? Thanks!

  2. #2
    Valued Forum Contributor
    Join Date
    07-11-2004
    Posts
    851
    if they are in separate cells, say a1:g1
    then
    =sum(a1:g1)-max(a1:g1)-min(a1:g1)
    not a professional, just trying to assist.....

  3. #3
    Registered User
    Join Date
    11-16-2006
    Posts
    4
    Thanks for your help. Now my next formula I need help with is, if I have 5 numbers(example 5, 10,13, 16,18) I need to have it calculate what would be 1st, 2nd,3rd, 4th or 5th place. Lowest to highest.

  4. #4
    Valued Forum Contributor
    Join Date
    07-11-2004
    Posts
    851
    see SMALL or LARGE function

  5. #5
    Registered User
    Join Date
    11-16-2006
    Posts
    4
    Hi Duane,
    Thanks for your help. I'm really close on this. When I use the SMALL function it brings back the correct information but I want it to put 1 for the smallest number, 2 for the next, 3 for the next, and so on. This is for the first 5 placements in a show.

  6. #6
    Forum Expert Carim's Avatar
    Join Date
    04-07-2006
    Posts
    4,070
    Hi,

    Use Rank(yourcell, yourrange)

    do you really need ordinal numbers ?

    If A1 is the rank ...

    =A1&IF(AND(A1>=10,A1<=14),"th",CHOOSE(MOD(A1,10)+1,"th","st","nd","rd","th","th","th","th","th","th"))


    HTH
    Carim

  7. #7
    Registered User
    Join Date
    11-16-2006
    Posts
    4
    OK. Sorry I'm still having problems with this. Here's what I've got
    N5, N6, N7, N8, N9, N10, N11 will have number in no particular order (5, 15, 10, 20, 25, 17, etc). In column O I want it to tell me which one is the lowest number and that equals 1, the next lowest number = 2, etc.

  8. #8
    Forum Expert Carim's Avatar
    Join Date
    04-07-2006
    Posts
    4,070
    Hi again,

    In cell M5 have you typed ...
    Please Login or Register  to view this content.
    and copied formula all the way down ... ?

    HTH
    Carim

  9. #9
    all4excel
    Guest

    Question Just an addition to this wonderful formula.

    Quote Originally Posted by Carim
    Hi again,

    In cell M5 have you typed ...
    Please Login or Register  to view this content.
    and copied formula all the way down ... ?

    HTH
    Carim
    Automated by using the ROW().
    [ =ROW()&IF(AND(ROW()>=10,ROW()<=14),"th",CHOOSE(MOD(ROW(),10)+1,"th","st","nd","rd","th","th","th","th","th","th")) ]

Closed 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