+ Reply to Thread
Results 1 to 12 of 12

Sorting Increments Data

  1. #1
    Registered User
    Join Date
    03-12-2014
    Location
    Malaysia
    MS-Off Ver
    Excel 2010
    Posts
    39

    Sorting Increments Data

    Hi all,

    I cannot explain my problem by words.

    I attached document, in that document I made formula in Pressure cell which is INDEX MATCH MATCH to get the result.

    But what I wanted is, when I type 10.4 in Temperature cell, the Pressure cell will show the result which is 1261.24 directly without I have to fill in two temperature cell to make it 10.4.

    Thanks for any help!
    Attached Files Attached Files

  2. #2
    Valued Forum Contributor AZ-XL's Avatar
    Join Date
    03-22-2013
    Location
    Azerbaijan, Baku
    MS-Off Ver
    Excel 2007
    Posts
    603

    Re: Sorting Increments Data

    Hi
    You should enter desired input to q6 cell (10.4 ; 9.56).
    =INDEX(D5:M15,MATCH(Q6,C5:C15,1),MATCH(Q6-TRUNC(Q6),D4:M4,1))
    Appreciate the help? CLICK *

  3. #3
    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,632

    Re: Sorting Increments Data

    Keeping exact match (3rd parameter = 0):

    10.4 in Q6 and then:
    Please Login or Register  to view this content.
    Theoreticaly
    Please Login or Register  to view this content.
    shall be enough, but because of problems with accuracy of floating point calculations rounding is necessary in this case.
    Best Regards,

    Kaper

  4. #4
    Registered User
    Join Date
    03-12-2014
    Location
    Malaysia
    MS-Off Ver
    Excel 2010
    Posts
    39

    Re: Sorting Increments Data

    Wooow, thanks a lot guys!!!! All of your formulas work perfectly...

  5. #5
    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,632

    Re: Sorting Increments Data

    Not really all ;-).

    @AZ-XL - note my comment on accuracy - it applies also to your case.
    Check for instance values for 2.3 or 2.4 etc.

    @hamidun: check values in the table - you have non-numbers there like 2.3 - 72l.228 instead of 721.228

    as for checking - write 0 in Q6 0.1 in Q7
    select both and fill down until 10.9
    then in R6:
    Please Login or Register  to view this content.
    in S6:
    Please Login or Register  to view this content.
    in T6:
    Please Login or Register  to view this content.
    select all 3 and fill down

    note FALSE values in somme cases and compare values for such rows with the table.
    Last edited by Kaper; 03-19-2014 at 03:20 AM.

  6. #6
    Registered User
    Join Date
    03-12-2014
    Location
    Malaysia
    MS-Off Ver
    Excel 2010
    Posts
    39

    Re: Sorting Increments Data

    Quote Originally Posted by AZ-XL View Post
    Hi
    You should enter desired input to q6 cell (10.4 ; 9.56).
    =INDEX(D5:M15,MATCH(Q6,C5:C15,1),MATCH(Q6-TRUNC(Q6),D4:M4,1))
    I guess, there is something wrong with your formula, when i type 6.6 the result shows cell on 6.5

  7. #7
    Valued Forum Contributor AZ-XL's Avatar
    Join Date
    03-22-2013
    Location
    Azerbaijan, Baku
    MS-Off Ver
    Excel 2007
    Posts
    603

    Re: Sorting Increments Data

    Hi
    I do not know why formula behaves like that.
    Actually result have to be as supposed. Try this one
    =INDEX(D5:M15,MATCH(Q6,C5:C15,1),(Q6-TRUNC(Q6))*10+1)

    Or you can use Kaper"s formula

  8. #8
    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,632

    Re: Sorting Increments Data

    Hi, not really "have to".
    If excel would use numbers as we were taught in school on maths course - yes, have to.
    But Excel uses floating point representation of the number.
    Simple test:
    Try writing 12345678901234567890 in one cell.
    Excel will first show it as 1.23457E+19.
    But have a look in formula bar. What you see?
    12345678901234500000 only, so we are 67890 short!
    What inaccuracy!

    My other favourite one:
    =SIN(RADIANS(360))
    What? Shall be 0!


    More detailed explanation here: http://support.microsoft.com/kb/78113
    Last edited by Kaper; 03-19-2014 at 06:17 AM.

  9. #9
    Valued Forum Contributor AZ-XL's Avatar
    Join Date
    03-22-2013
    Location
    Azerbaijan, Baku
    MS-Off Ver
    Excel 2007
    Posts
    603

    Re: Sorting Increments Data

    Thank you Kaper for this information. Once I met this kind of problem but there was decimal numbers until 6-8 level (0.12345678....). Havent thought that I will meet this problem again.

    Thank you again

  10. #10
    Registered User
    Join Date
    03-12-2014
    Location
    Malaysia
    MS-Off Ver
    Excel 2010
    Posts
    39

    Re: Sorting Increments Data

    Quote Originally Posted by Kaper View Post
    @hamidun: check values in the table - you have non-numbers there like 2.3 - 72l.228 instead of 721.228

    as for checking - write 0 in Q6 0.1 in Q7
    select both and fill down until 10.9
    then in R6:
    Please Login or Register  to view this content.
    in S6:
    Please Login or Register  to view this content.
    in T6:
    Please Login or Register  to view this content.
    select all 3 and fill down

    note FALSE values in somme cases and compare values for such rows with the table.
    I marked this thread as solved.

    But i am wondering what you are trying to say to me by this post.

    Since i used =INDEX(E6:N106, MATCH(ROUNDDOWN(R8,0),D6:D106,0), MATCH(ROUND(MOD(R8,1),1),E5:N5,0)) and it works perfectly.

  11. #11
    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,632

    Re: Sorting Increments Data

    Hi hamidun,

    I was refering to:
    All of your formulas work perfectly
    And also tried to obtain some "didactic" effect. I hope you not only use the ready formulas, but try to learn how they work, to write similar by yourself next time you have a similar need.

  12. #12
    Registered User
    Join Date
    03-12-2014
    Location
    Malaysia
    MS-Off Ver
    Excel 2010
    Posts
    39

    Re: Sorting Increments Data

    Quote Originally Posted by Kaper View Post
    Hi hamidun,

    I was refering to:


    And also tried to obtain some "didactic" effect. I hope you not only use the ready formulas, but try to learn how they work, to write similar by yourself next time you have a similar need.
    Yeah, I actually want you to explain a bit the function of "RUNDOWN", "ROUND", "MOD".

    Or if you don't mind, would explain a bit how your formula works?

+ 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: 2
    Last Post: 02-15-2014, 03:12 PM
  2. [SOLVED] Need Data Validation or Formula to Force Entry of Data in .25 Increments
    By sstravs in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 07-11-2012, 07:16 PM
  3. Validating data in 500 count increments
    By kadams99 in forum Excel General
    Replies: 2
    Last Post: 09-19-2008, 05:36 PM
  4. Showing Data in Increments
    By apartmenta4 in forum Excel General
    Replies: 3
    Last Post: 03-04-2008, 07:17 PM
  5. Replies: 4
    Last Post: 06-06-2005, 09:05 PM

Tags for this Thread

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