Finding minimum value from spreadsheet

Hi,
I am attaching here my spreadsheet. In that spreadsheet I want to find minimum value of column B and display the corresponding value at the same iondex from column A.
Attachments:
vna_readings.xlsx ‏14 KB

Hi jyotia,
in this thread you'll find the functions to read the entire content from your excel file. If you have your data as an array in LabVIEW, then you can use the "Array Min&Max" function to get the min index from your column "B". With index array you can read the corresponding value from column "A".
Mike

Similar Messages

  • Read integer values from spreadsheet and display the values in a table

    Hi all,
    I have integer values to read from a spreadsheet and display them in a table. I am using 'Read from spreadsheet file' in 'integer' mode. I would like to display these values in a table. The problem is that the table takes only 2d-array of string as input but not integer.  
    It works fine if I change the mode of 'Read from spreadsheet file' from 'integer' to 'string' but I want to read integers and have to use the integer values for further calculations. Please give any suggestions on displaying integers to a table.
    Thank you. 
    Solved!
    Go to Solution.

    No don't take element by element just convert as a whole. See the attached example
    Good luck
    The best solution is the one you find it by yourself

  • Finding minimum value in each row using dynamic query

    need to find the minimum and maximum value from each row using dynamic query
    [from curr] will be given as input
    Tuky

    DECLARE @t TABLE(a INT,b INT,c INT);
    INSERT @t VALUES(1,2,3),(9,8,7),(4,6,5);
    SELECT *
    ,      (   SELECT  MAX(val) 
               FROM    (VALUES (a)
                           ,   (b)
                           ,   (c)
                       ) AS value(val)
           ) AS MaxVal 
    ,      (   SELECT  MIN(val) 
               FROM    (VALUES (a)
                           ,   (b)
                           ,   (c)
                       ) AS value(val)
           ) AS MinVal 
    FROM @t;
    Best Regards,Uri Dimant SQL Server MVP,
    http://sqlblog.com/blogs/uri_dimant/
    MS SQL optimization: MS SQL Development and Optimization
    MS SQL Consulting:
    Large scale of database and data cleansing
    Remote DBA Services:
    Improves MS SQL Database Performance
    SQL Server Integration Services:
    Business Intelligence

  • Get the minimum value from a cursor

    Hi,
    i have a cursor that returns  the following two columns in a stored procedure. now i want to find  the minimum value of SORT NUMBER column .
    Can anybody give me an idea..... 
    create or replace procedure get_min
    as
    cursor c1 is
    select  group_number
           ,  sort_number
    from  group_table
    v_min  number;
    begin
    for c1_rec in c1
    select min(c1_rec.sort_number) into v_min ;
    end;
    GRP_NUMBER            SORT NUMBER
    1001                           9978
    1002                           9979
    1003                           9946   thanks in advance.

    OPTION1
    I'm guessing your stored procedure loops through the cursor (goes record by record and does something), correct? If it loops through all records, then
    1. first define variable which will hold minimum value e.g.
    my_min_value number := 0;
    2. then add this inside the loop (as you loop through all records, my_min_value will get assign the lowest value)
    my_min_value := LEAST(my_min_value, c1_rec.sort_number);
    when the cursor is done looping through all records, you get your minimum value
    small note: make sure c1_rec.sort_number is not null or you know how null works with least function
    OPTION2
    if you don't loop through all records (maybe have a condition and stop looping), then you can always change the SQL and add the minimum value to the SQL, there are multiple ways to do this, this is one of them - I hope there is no typo - it's 8pm :-)
    select  group_number
           ,  sort_number,
              min(sort_number) OVER ( )
    from  group_table
    OPTION3
    get rid of cursor, there are probably 5000 better choices :-)

  • How to find max value from a list of numbers stored in a varray?

    hi,
    Can any body help me to get the max value from a list of numbers stored in a varray?
    thanks in advance....
    regards
    LaxmiNarsimha

    Yes. Could you post what you have tried before we start helping you in this?

  • Finding unique minimum value from a set of values

    Hi.
    I have numbers in three columns - H, P, X
    I need to compare numbers in each row and find out the lowest value and find out if there is a unique lowest value.
    For example, in row 2
    H2=2, P2=5.4, X2=2. In this row, both H2 and X2 have the lowest number, 2. Hence, the lowest number is not unique. I want to fill cells H2 and X2 in Yellow and cell P2 in Red.
    In row 3, 
    H3=2, P3=5.4, X3=4. In this row, H3 has the lowest unique number, 2. I want to fill cell H3 in Green and cells P3 and X3 in Red.
    Green = lowest and unique
    Yellow = lowest but not unique
    Red = Not the lowest
    I can use the MIN function to find the least number but I do not know how to identify the unique lowest number if available.
    Thanks for your help.

    Select for example H2:H100. I will assume that the active cell within the selection is in row 2.
    Color the cells yellow (this will be the default)
    On the Home tab of the ribbon, click Conditional Formatting > New Rule...
    Select 'Use a formula to determine which cells to format'.
    Enter the formula
    =OR($H2>$P2,$H2>$X2)
    Click Format...
    Activate the Fill tab and select red.
    Click OK, then OK again.
    On the Home tab of the ribbon, click Conditional Formatting > New Rule...
    Select 'Use a formula to determine which cells to format'.
    Enter the formula
    =AND($H2<$P2,$H2<$X2)
    Click Format...
    Activate the Fill tab and select green.
    Click OK, then OK again.
    The formulas for columns P and X are similar, switching the roles of the three cells.
    Regards, Hans Vogelaar (http://www.eileenslounge.com)

  • How to find all values from Minimum to Maximum?

    Post Author: newcruser
    CA Forum: Formula
    @Minimum
    DatePart("h",(Minimum ()))
    @Maximum
    DatePart("h",(Maximum()))

    Post Author: V361
    CA Forum: Formula
    Use a running total, you can refer to your formula in the running total.

  • Finding minimum value

    I have 4 double variables and I need to find the minimum of them all. I tried using the Math.min (x,y) statement but it only allows me to find the minimum of two numbers. Thanks,
        public static void main(String [] args) {
        double minimum = getMin (4.2, -3.5, 2.1, 1.1);
        System.out.println("The Minimum is: " + minimum);
        public static double getMin (double w, double x, double y, double z)
        double minimum = Math.min(w,x);
        return 0;
        }

    > One of the easiest way might be a sorted list
    in
    which you just grab from the low end.
    Sorting the list would be more time consuming than
    iterating over it once and returning the smallest
    value, as warnerja suggested.I know but it appears that the OP does not want to do any comparisions himself so I was suggesting this.

  • Finding maximum value from  VARCHAR2

    Hi all.
    I am having Varchar2 values like this....
    1.0.0.22
    1.0.0.23
    1.0.0.3
    1.0.0.6
    1.0.0.7
    1.0.0.8
    1.0.0.9
    1.0.0.9
    I want to find the highest value (in this case, it is 1.0.0.23). If i use MAX function, it is giving 1.0.0.9. Any help is appreciated.
    Thanks in advance,
    Pal

    In 10g, I would use regular expressions to "format" those version numbers. In my example, it would work for 3-digit version numbers, regardles on which position:
    WITH t AS (SELECT '1.0.0.22' col1
                 FROM dual
                UNION 
               SELECT '1.0.0.23'
                 FROM dual
                UNION 
               SELECT '1.0.0.3'
                 FROM dual
                UNION 
               SELECT '1.0.0.6'
                 FROM dual
                UNION 
               SELECT '1.0.0.7'
                 FROM dual
                UNION 
               SELECT '1.0.0.8'
                 FROM dual
                UNION 
               SELECT '1.0.0.9'
                 FROM dual
    SELECT col1
      FROM (SELECT t.*
                 , ROW_NUMBER() OVER (ORDER BY REGEXP_REPLACE(REGEXP_REPLACE(t.col1,
                                                                             '([0-9]+)(\.|$)',
                                                                             '000\1\2'),
                                                              '([0-9]{3}(\.|$))|.',
                                                              '\1') DESC                                                         
                                      ) rn                                       
              FROM t
    WHERE rn = 1
    ;   C.

  • Find duplication values from multiple columns in a big table

    Hi All,
    I am working on a 11gR2 database in linux. i want to display record that have duplicate values in 2 columns.
    1. Table Structure :-
    CREATE TABLE A
    ID NUMBER(10),
    F_NAME VARCHAR2(100 BYTE),
    L_NAME VARCHAR2(100 BYTE)
    2. Sample Data:-
    Insert into A
    (ID, F_NAME, L_NAME) Values (1,'TONY' ,'SUMIT');
    Insert into A
    (ID, F_NAME, L_NAME) Values (2,'SUMIT' ,'KEITH');
    Insert into A
    (ID, F_NAME, L_NAME) Values (3,'NORA','SMITH');
    Insert into A
    (ID, F_NAME, L_NAME) Values (4,'APRIL','TONY');
    Insert into A
    (ID, F_NAME, L_NAME) Values (5,'ROSS','TAM');
    ID F_NAME L_NAME
    1 TONY SUMIT
    2 SUMIT KEITH
    3 NORA SMITH
    4 APRIL TONY
    5 ROSS TAM
    4. My requirement is i need display IDs that it's F_NAME or L_NAME has duplication in F_NAME or L_NAME columns.
    The result should be
    ID
    1 reason: F_NAME (TONY) equals to L_NAME of record 4, L_NAME (SUMIT) equals to F_NAME of record 2
    2 reason: F_NAME (SUMIT) equals to L_NAME of record 1
    4 reason: L_NAME (TONY) equals to F_NAME of record 1
    record 3, 5 aren't in the result because there is no duplication in F_NAME or L_NAME columns for NORA,SMITH, ROSS, TAM
    The table contains 10 million records, i really need to consider the performance.
    kindly suggest me the solution

    Note: Forum members please suggest better approach to this -- below.. convert into SQL :)
    I know I will be opposed by many people in this forum for posting such in-efficient solution.
    But trying to learn along with you.. its an interesting problem which must deal with all rows vs all rows to get all combinations.
    But I am still thinking how to write it in SQL, probably will learn from this post after we receive some good SQL solution for the code what I am currently doing now.
    step 1: created a table B similar to table A and added a column reason
    CREATE TABLE B
      ID      NUMBER(10),
      F_NAME  VARCHAR2(100 BYTE),
      L_NAME  VARCHAR2(100 BYTE),
      REASON  VARCHAR2(1000 BYTE)  --- ADDED THIS
    )Definetely inefficient :(
    BEGIN
       FOR rec_outer IN (SELECT * FROM A) LOOP
          FOR rec_inner IN (SELECT * FROM A) LOOP
             IF (rec_outer.f_name = rec_inner.l_name) THEN
                UPDATE B
                   SET reason =
                             rec_outer.id
                          || ' reason: F_NAME ('
                          || rec_outer.f_name
                          || ') equals to L_NAME of record '
                          || rec_inner.id
                 WHERE b.id = rec_outer.id;
             END IF;
          END LOOP;
          FOR rec_inner IN (SELECT * FROM A) LOOP
             IF (rec_outer.l_name = rec_inner.f_name) THEN
                UPDATE B
                   SET reason =
                          reason
                          || CASE
                                WHEN reason IS NULL THEN
                                   rec_outer.id || ' reason: '
                                ELSE
                             END
                          || 'L_NAME ('
                          || rec_inner.f_name
                          || ') equals to F_NAME of record '
                          || rec_inner.id
                 WHERE b.id = rec_outer.id;
             END IF;
          END LOOP;
       END LOOP;
       COMMIT;
    EXCEPTION
       WHEN OTHERS THEN
          rollback;
          RAISE;
    END;OUTPUT:
    ID     F_NAME     L_NAME     REASON
    1     TONY     SUMIT     1 reason: F_NAME (TONY) equals to L_NAME of record 4,L_NAME (SUMIT) equals to F_NAME of record 2
    2     SUMIT     KEITH     2 reason: F_NAME (SUMIT) equals to L_NAME of record 1
    3     NORA     SMITH     
    4     APRIL     TONY     4 reason: L_NAME (TONY) equals to F_NAME of record 1
    5     ROSS     TAM     Cheers,
    Manik.
    Edited : Added rollback

  • How to get minimal value from children with skip missing values?

    Hi,I would like to get minimum value from children, but I would like to skip missing.Minimal value from children works fine (see following formula):@MIN(@CHILDREN("member_name"));Minimal value with skip missing (see following formula) returns error:@MINSRANGE(SKIPMISSING,@CHILDREN("member_name"));Error message: "This function must be a macro".Question: How can I write a formule to get minimal value from children without missing values.What is a macro and how can I write it? If possible I would like to write formule instread of macro!Thanks,Grofaty

    Hi,I have found out solution:@MINS(SKIPMISSING,@CHILDREN "member_name")); No more help is needed.Thanks,Grofaty

  • How to extract values from pricing procedure for conditions in CRM Billing?

    I have a number of conditions in the pricing procedure in CRM Billing that I would like to extract to SAP BW. How can this be done?
    Is there a standard extractor for CRM Billing similar to the SD Billing extractor "Extraction of SD Billing Conditions" (2LIS_13_VDKON)?
    If there is no standard extractor, is there another way to extract the conditions and the related values?
    I am using the standard CRM Billing Extractor 0BEA_CRMB already, so maybe an append could solve my problem. How can this be done? In what CRM-tables can I find the values from pricing procedure for conditions in CRM Billing?

    you may want to post that last question in a CRM forum... in ECC it would be table KONV

  • How to capture the data within the given range of maximum and minimum values ? from csv files

    My requirement,
    1. Here, the user will provide the range like maximum and minimum values, based on this range, the VI should capture the data within the given range. ( from CSV file as attached )
    2. Then VI should calcluate the average value for captured data and export it to excel.
    This is my requirement can anyone help me on this.
    Many thanks in advance
    rc_cks
    Attachments:
    sample_short.csv ‏2439 KB

    Hi,
    Thanks for remnding me. I forgt to attach the VI, 
    Here I am attaching the VI, what I tried. 
    From attached CSV file, I have to find an average value for columns B,C,D,E,F,G,H,I and AJ, AK. ( data range will be defined  by user ), focused only on these columns
    Here, the scope is to calculate an average value for given data range by user as MAX and MIN data.  
    FYI:  I tried manually for two instance i.e column H & I.  As per H column one steady state values from  7500 to 10500 and similarly in I column 7875 to 10050. So, I gave these as a limit to capture and calculate the average value. But unfortunaltely, requirement has been modified as per below requirements.
    More Info on requirement: 
    --> The user will define the range of data by giving some MAXIMUM and MINIMUM values(for above mentioned columns induvidually), then VI should capture          that data range and it has to caculate the average value for that range of data. This is the task I have to complete. 
    --> I am stuck in creating a logic for data capturing for given range of MAX and MIN value from user, 
         Can anyone help me on this. 
    If my explanation is not clear, Please let me know.  
    Many thanks, help mw
    rc
    Attachments:
    VI_rc.vi ‏25 KB
    sample.zip ‏4166 KB

  • How do I make a drop down list of text in numbers as it is made in the example spreadsheet for comparing cars for buying where you can choose a value from a dropdown list for each car?

    how do I make a drop down list of text in numbers as it is made in the example spreadsheet for comparing cars for buying where you can choose a value from a dropdown list for each car?

    Where is this example spreadsheet? Without seeing it I can only guess at what you are asking.
    To make a drop-down list (a pop-up menu in Numbers-speak), format the cell as a pop-up then edit and add to the list of items.
    If the example spreadsheet is pulling in a dollar value based on what car you chose in the pop-up, it is probably using LOOKUP or one of the other lookup functions, getting the information from another table (a lookup table). If, instead, these dollar values are what you are choosing in the pop-up, then you need to create a pop-up with these values in it.
    The Help menu includes a link to a page where you can download the Numbers Users Manual. It also has a link to the Formulas and Functions guide. Both are useful to new users.

  • Finding a minimum value in an array without using loops

    I can find a minimum value in an array using a loop, but I am unsure of how to do it without any type of of loop
    Here is what I have using a loop:
    // This method searches for the minimum value in an array
    public static int min(int a[]){
    int min = a[0];
    for(int i = 1; i < a.length; i++){
    if(a[i] < min){
    min = a;
    return min;
    How do I covert this to do the same thing, using no loops?
    Thank you for replies
    Edited by: kazmania on Feb 7, 2008 12:26 PM

    public class Test112 {
    public int recurse(int[] x, int i, int n)
    if (i==x.length-1) { return (x[i] < n) ? x[i] : n; }
    n = (n < x[++i]) ? n : x;
    return recurse(x, i, n);
    public static void main(String[] args) {
    int[] nums = {3, 1, 56, 2, 99, 34, 5, 78, -400, 2383, 201, -9, -450};
    Test112 t = new Test112();
    int min = t.recurse(nums, 0, nums[0]);
    System.out.println(min);

Maybe you are looking for

  • Various problems since Mavericks update

    Since doing the Mavericks update a few days ago, I'm having a few issues with seemingly unrelated programs. 1) Quicksilver Works perfectly except for the triggers (shortcuts) that act on selected text. Eg normally I could select the word 'text' in th

  • Enchanage rate and residual payment

    hello, when I receive a residual payment and the rate has changed the system calculates the tax on the total amount. Should not calculate the value that I receive? Thanks for the help Vanessa Anastácio

  • Ipad 2 not listed in devices

    My new Ipad 2 was first Setup with a friends laptop to activate the device while I was out of town.  Upon returning, I connected to my laptop and iTunes won't recognize the Ipad 2 is connected.  Is this because it originally was synced to a different

  • Movie won't download on my iPod. Help? Please?

    I bought fast and furious on my iPod and had to pause the download because I had to go somewhere. When I came back and tried to resume the download it just says error. What do I do? Can someone help please?

  • Re-downloading a lost movie.

    if i lose a bought movie from iTunes (system crash), can i download it again (at no charge), i.e. does itunes remember that you bought it?