+ Reply to Thread
Results 1 to 8 of 8

Looking for formula for lowest costs, excluding zero

  1. #1
    Pipeladylu
    Guest

    Looking for formula for lowest costs, excluding zero

    I found a formula for determining the lowest costs from several columns, but
    I cannot get it to work in my worksheet. This is nearly 1000 lines long. I
    want to search 4 columns and get the lowest cost excluding 0. Any
    suggestions would be greatly appreciated. Thanks!!

  2. #2
    KL
    Guest

    Re: Looking for formula for lowest costs, excluding zero

    Try this array formula (confirm with Ctrl+Shift+Enter, not just Enter):

    =MIN(IF(A1:D1000,A1:D1000))

    Regards,
    KL


    "Pipeladylu" <[email protected]> wrote in message
    news:[email protected]...
    >I found a formula for determining the lowest costs from several columns,
    >but
    > I cannot get it to work in my worksheet. This is nearly 1000 lines long.
    > I
    > want to search 4 columns and get the lowest cost excluding 0. Any
    > suggestions would be greatly appreciated. Thanks!!




  3. #3
    Pipeladylu
    Guest

    Re: Looking for formula for lowest costsexcluding zero

    I tried the formula with the array, but it still did not work. The formula
    that I used was =MIN(IF(MOD(COLUMN(B5:G5),3)=1,IF(B5:G5)))
    Do you think this is correct?

    "KL" wrote:

    > Try this array formula (confirm with Ctrl+Shift+Enter, not just Enter):
    >
    > =MIN(IF(A1:D1000,A1:D1000))
    >
    > Regards,
    > KL
    >
    >
    > "Pipeladylu" <[email protected]> wrote in message
    > news:[email protected]...
    > >I found a formula for determining the lowest costs from several columns,
    > >but
    > > I cannot get it to work in my worksheet. This is nearly 1000 lines long.
    > > I
    > > want to search 4 columns and get the lowest cost excluding 0. Any
    > > suggestions would be greatly appreciated. Thanks!!

    >
    >
    >


  4. #4
    KL
    Guest

    Re: Looking for formula for lowest costsexcluding zero

    Hi,

    Your formula makes no sense to me, can you explain what you are trying to
    achieve and which columns you want to evaluate.

    REgards,
    KL


    "Pipeladylu" <[email protected]> wrote in message
    news:[email protected]...
    >I tried the formula with the array, but it still did not work. The formula
    > that I used was =MIN(IF(MOD(COLUMN(B5:G5),3)=1,IF(B5:G5)))
    > Do you think this is correct?
    >
    > "KL" wrote:
    >
    >> Try this array formula (confirm with Ctrl+Shift+Enter, not just Enter):
    >>
    >> =MIN(IF(A1:D1000,A1:D1000))
    >>
    >> Regards,
    >> KL
    >>
    >>
    >> "Pipeladylu" <[email protected]> wrote in message
    >> news:[email protected]...
    >> >I found a formula for determining the lowest costs from several columns,
    >> >but
    >> > I cannot get it to work in my worksheet. This is nearly 1000 lines
    >> > long.
    >> > I
    >> > want to search 4 columns and get the lowest cost excluding 0. Any
    >> > suggestions would be greatly appreciated. Thanks!!

    >>
    >>
    >>




  5. #5
    KL
    Guest

    Re: Looking for formula for lowest costsexcluding zero

    Maybe this:

    =MIN(IF((MOD(COLUMN(B5:G5),3)=1)*(B5:G5<>0),B5:G5))

    Enter as ARRAY formula

    Regards,
    KL


    "KL" <[email protected]> wrote in message
    news:%[email protected]...
    > Hi,
    >
    > Your formula makes no sense to me, can you explain what you are trying to
    > achieve and which columns you want to evaluate.
    >
    > REgards,
    > KL
    >
    >
    > "Pipeladylu" <[email protected]> wrote in message
    > news:[email protected]...
    >>I tried the formula with the array, but it still did not work. The
    >>formula
    >> that I used was =MIN(IF(MOD(COLUMN(B5:G5),3)=1,IF(B5:G5)))
    >> Do you think this is correct?
    >>
    >> "KL" wrote:
    >>
    >>> Try this array formula (confirm with Ctrl+Shift+Enter, not just Enter):
    >>>
    >>> =MIN(IF(A1:D1000,A1:D1000))
    >>>
    >>> Regards,
    >>> KL
    >>>
    >>>
    >>> "Pipeladylu" <[email protected]> wrote in message
    >>> news:[email protected]...
    >>> >I found a formula for determining the lowest costs from several
    >>> >columns,
    >>> >but
    >>> > I cannot get it to work in my worksheet. This is nearly 1000 lines
    >>> > long.
    >>> > I
    >>> > want to search 4 columns and get the lowest cost excluding 0. Any
    >>> > suggestions would be greatly appreciated. Thanks!!
    >>>
    >>>
    >>>

    >
    >




  6. #6
    Pipeladylu
    Guest

    Re: Looking for formula for lowest costsexcluding zero

    I have a large quote that I am working on and have pricing from several
    vendors. I am nearly complete and would like to create a formula to
    determine the lowest cost per line. The costs appear in lines H, L, T & U.
    I don't want zero to become a part of the lowest pricing. Thanks KL!!!

    "KL" wrote:

    > Hi,
    >
    > Your formula makes no sense to me, can you explain what you are trying to
    > achieve and which columns you want to evaluate.
    >
    > REgards,
    > KL
    >
    >
    > "Pipeladylu" <[email protected]> wrote in message
    > news:[email protected]...
    > >I tried the formula with the array, but it still did not work. The formula
    > > that I used was =MIN(IF(MOD(COLUMN(B5:G5),3)=1,IF(B5:G5)))
    > > Do you think this is correct?
    > >
    > > "KL" wrote:
    > >
    > >> Try this array formula (confirm with Ctrl+Shift+Enter, not just Enter):
    > >>
    > >> =MIN(IF(A1:D1000,A1:D1000))
    > >>
    > >> Regards,
    > >> KL
    > >>
    > >>
    > >> "Pipeladylu" <[email protected]> wrote in message
    > >> news:[email protected]...
    > >> >I found a formula for determining the lowest costs from several columns,
    > >> >but
    > >> > I cannot get it to work in my worksheet. This is nearly 1000 lines
    > >> > long.
    > >> > I
    > >> > want to search 4 columns and get the lowest cost excluding 0. Any
    > >> > suggestions would be greatly appreciated. Thanks!!
    > >>
    > >>
    > >>

    >
    >
    >


  7. #7
    Forum Expert Cutter's Avatar
    Join Date
    05-24-2004
    Location
    Ontario,Canada
    MS-Off Ver
    Excel 2010
    Posts
    6,451
    If you want to determine only the lowest cost for each column (and not the number of times the lowest cost appears) then try this:

    =IF(MIN(H2:H200)>0,SMALL(H2:H200,COUNTIF(H2:H200,0)+1),MIN(H2:H200))

    This example is for column H (range H2:H200) so adjust as necessary and then copy it to to your other columns.

    It is not an array formula so just enter in normal way
    Last edited by Cutter; 09-19-2005 at 05:47 PM.

  8. #8
    Pipeladylu
    Guest

    Re: Looking for formula for lowest costs, excluding zero

    Thanks... It works great!! I really appreciate your help

    "Cutter" wrote:

    >
    > If you want to determine only the lowest cost for each column (and not
    > the number of times the lowest cost appears) then try this:
    >
    > =IF(MIN(H2:H200)>0,SMALL(H2:H200,COUNTIF(H2:H200,0)+1),MIN(H2:H200))
    >
    > This example is for column H (range H2:H200) so adjust as necessary and
    > then copy it to to your other columns.
    >
    > It is not an array formula so just enter in normal way
    >
    >
    > --
    > Cutter
    > ------------------------------------------------------------------------
    > Cutter's Profile: http://www.excelforum.com/member.php...fo&userid=9848
    > View this thread: http://www.excelforum.com/showthread...hreadid=468906
    >
    >


+ 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