+ Reply to Thread
Results 1 to 11 of 11

MIN function returns the same value for every row

  1. #1
    Registered User
    Join Date
    12-26-2013
    Location
    Trondheim, Norway
    MS-Off Ver
    Excel 2013
    Posts
    6

    MIN function returns the same value for every row

    Hi
    In column D I have the time of the end of my shift. When I try to input =MIN(1;$D:$D) in column E, i get the same answer (0,625) for any row, while =$D:$D gives correct values. So I guess it has something to do with the MIN function, but I can't figure out what it is. Anyone know why this is occuring?

    Thanks

  2. #2
    Forum Guru AlKey's Avatar
    Join Date
    07-20-2009
    Location
    Lakeland, FL USA
    MS-Off Ver
    Microsoft Office 2010/ Office 365
    Posts
    8,903

    Re: MIN function returns the same value for every row

    Hi and welcome to the forum

    Try =MIN(D:D)
    If you like my answer please click on * Add Reputation
    Don't forget to mark threads as "Solved" if your problem has been resolved

    "Nothing is so firmly believed as what we least know."
    --Michel de Montaigne

  3. #3
    Registered User
    Join Date
    12-26-2013
    Location
    Trondheim, Norway
    MS-Off Ver
    Excel 2013
    Posts
    6

    Re: MIN function returns the same value for every row

    Thanks AlKey
    I tried your solution, but it's still not working. It seems it takes the minimum value of the entire column, while I want the minimum value of "1" and the value in column D in the same row as the formula is in. E4=MIN(1;$D4:$D4) gives the right value, while E4=MIN(1;$D:$D) gives the minimum of 1 and every value in column D. I to simplify my formulas by using name references, in this case I tried to use "EndShift" instead of referencing each cell for each row, like this E4=MIN(1;EndShift). I probably made it more complicated by doing so ;P

  4. #4
    Forum Guru AlKey's Avatar
    Join Date
    07-20-2009
    Location
    Lakeland, FL USA
    MS-Off Ver
    Microsoft Office 2010/ Office 365
    Posts
    8,903

    Re: MIN function returns the same value for every row

    I suggest that you upload a sample spreadsheet with about 10-15 rows of data so we could figure our a solution for you.

    To upload a file click on Go Advanced on the bottom of your screen, then click on paperclip icon and Add Files.

  5. #5
    Forum Guru Jonmo1's Avatar
    Join Date
    03-08-2013
    Location
    Bryan, TX
    MS-Off Ver
    Excel 2010
    Posts
    9,763

    Re: MIN function returns the same value for every row

    Try this in E4

    =MIN(1,D4)

  6. #6
    Registered User
    Join Date
    12-26-2013
    Location
    Trondheim, Norway
    MS-Off Ver
    Excel 2013
    Posts
    6

    Re: MIN function returns the same value for every row

    MIN function example.xlsx
    Here is the example spreadsheet

  7. #7
    Registered User
    Join Date
    12-26-2013
    Location
    Trondheim, Norway
    MS-Off Ver
    Excel 2013
    Posts
    6

    Re: MIN function returns the same value for every row

    @Jonmo1
    I'm trying to make the spreadsheet more readable for other users, so I wanted to use naming references instead of directly referencing the cells themselves, but it's probably more trouble than its worth :p

  8. #8
    Forum Guru Jonmo1's Avatar
    Join Date
    03-08-2013
    Location
    Bryan, TX
    MS-Off Ver
    Excel 2010
    Posts
    9,763

    Re: MIN function returns the same value for every row

    Quote Originally Posted by Wanderer86 View Post
    but it's probably more trouble than its worth :p
    +1

    Reading a cell reference is about as simple as it gets in Excel.

  9. #9
    Forum Guru Jonmo1's Avatar
    Join Date
    03-08-2013
    Location
    Bryan, TX
    MS-Off Ver
    Excel 2010
    Posts
    9,763

    Re: MIN function returns the same value for every row

    You could do this in the Named Range reference

    =INDEX(Sheet1!$B:$B,ROW())

    However, this is now a Volitile funciton and will reduce sheet performance.

    Back to the "is it really worth it" argument.

  10. #10
    Registered User
    Join Date
    12-26-2013
    Location
    Trondheim, Norway
    MS-Off Ver
    Excel 2013
    Posts
    6

    Re: MIN function returns the same value for every row

    Yeah, we dont want reduced performance

  11. #11
    Registered User
    Join Date
    12-26-2013
    Location
    Trondheim, Norway
    MS-Off Ver
    Excel 2013
    Posts
    6

    Re: MIN function returns the same value for every row

    I don't think its possible to do it the way I was thinking without making it volatile, and I'm probably the only one who is going to be using this spreadsheet anyways, so I'm marking this as solved Thanks for the help though

+ 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. [SOLVED] User defined function returns an error on a standard function used in it.
    By pb48 in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 01-23-2013, 01:35 PM
  2. Sum function returns 0, sum(value(...) returns #value
    By AileenR in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 01-17-2013, 11:13 PM
  3. [SOLVED] Using ROW function inside of both an Indirect and Index function returns #VALUE
    By xandermacleod in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 09-11-2012, 06:22 PM
  4. If function returns #NAME?
    By HUNTXTRM in forum Excel General
    Replies: 6
    Last Post: 01-21-2012, 06:05 AM
  5. [SOLVED] VBA function returns #NAME?
    By mogens in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 03-20-2006, 01:10 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