+ Reply to Thread
Results 1 to 11 of 11

Function to change the rest of row ,if the first number is changed?

  1. #1
    bugmenot
    Guest

    Function to change the rest of row ,if the first number is changed?

    I have a table
    št. meritev 10x10 [ms] 20x20 [ms] 40x40 [ms] 80x80 [ms]
    1 1002 4003 16100 32102
    2 1010 4013 16080 32160
    3 989 3989 15980 31940

    and another like this:

    št. meritev 10x10 [ms] 20x20 [ms] 40x40 [ms] 80x80 [ms]
    1 da da ne da
    2 ne ne da ne
    3 ne ne da ne

    the second table i use "IF" to get results if the number in the first table is larger of smaller than a specified value.
    The first column of the second table has randomly changing numbers.
    Now my question is how to make the "da","ne" change depending on what number of the row it is, so if the row changes the anwsers change too.

    I hope it makes sense, and that this is in the right part of the forum.
    Last edited by bugmenot; 01-29-2009 at 01:06 PM.

  2. #2
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: Function to change the rest of row ,if the first number is changed?

    Can you tell us the current formula you are using?

    And give an example of what you mean by changed numbers in first column with expected results...
    Where there is a will there are many ways.

    If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below left corner

    Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.

  3. #3
    bugmenot
    Guest

    Re: Function to change the rest of row ,if the first number is changed?

    The formula im using to get "da""ne" is =IF(ABS(meritve!D7-meritve!D$15)< $D$17*meritve!D$16;"da";"ne")
    These are the full tables:

    št. meritev 10x10 [ms] 20x20 [ms] 40x40 [ms] 80x80 [ms]
    1 1002 4003 16100 32102
    2 1010 4013 16080 32160
    3 989 3989 15980 31940
    4 999 3997 15987 31982
    5 1001 4001 16021 32128
    6 994 3991 15993 31983
    7 1003 4003 16063 32073
    8 1009 4001 16016 32036
    povp. vred. 1000,875 3999,75 16030 32050,5
    std. odk. 6,584783596 7,066647013 42,54997062 73,1641989

    ---------------------
    št. meritev 10x10 [ms] 20x20 [ms] 40x40 [ms] 80x80 [ms]
    5 da da ne da
    7 ne ne da ne
    5 ne ne da ne
    5 da da da da
    6 da da da da
    8 da ne da da
    8 da da da da
    7 ne da da da

    The first column in the second table (they represent the measurement 1st, 2nd,3rd,...) i use =RANDBETWEEN(1;8) , to get random numbers. But the other four columns stay the same as they were, but they should also change when the number of the measurement changes.

    Hope it makes sence now, and that its even possible to solve.

  4. #4
    Registered User
    Join Date
    05-02-2004
    MS-Off Ver
    2007
    Posts
    43

    Re: Function to change the rest of row ,if the first number is changed?

    I would have a look at OFFSET()

    HTH

    TJ

  5. #5
    Forum Guru DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Northumberland, UK
    MS-Off Ver
    O365
    Posts
    21,531

    Re: Function to change the rest of row ,if the first number is changed?

    I wouldn't given it's Volatile and although I concede RAND(BETWEEN) is Volatile the more Volatiles you have the worse your performance will become... use a combination of INDEX/MATCH.

    If you could provide some range references for each table we'd be able to give you a solution ... as is it's a little difficult.

    Post a sample workbook if possible

    Apologies to TJ & OP for plethora of Edits !
    Last edited by DonkeyOte; 01-29-2009 at 12:04 PM.

  6. #6
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: Function to change the rest of row ,if the first number is changed?

    I think posting the workbook is better, that way we can see the actual cell references....

  7. #7
    bugmenot
    Guest

    Re: Function to change the rest of row ,if the first number is changed?

    Here is the file: http://rapidshare.com/files/191166980/Naloga5.2.rar

    The first table is on the first sheet and the second on the second. Never mind the other numbers.
    Its probably a bit chaotic, but i don't really use excel that much, and this is actualy the first time i actualy used all these functions.

  8. #8
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: Function to change the rest of row ,if the first number is changed?

    Can you post it here as an attachment instead?

  9. #9
    bugmenot
    Guest

    Re: Function to change the rest of row ,if the first number is changed?

    Here you go.
    Attached Files Attached Files

  10. #10
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: Function to change the rest of row ,if the first number is changed?

    Try this formula in D7:

    Please Login or Register  to view this content.
    copied down and across

  11. #11
    bugmenot
    Guest

    Re: Function to change the rest of row ,if the first number is changed?

    WOW, it works. Thank you very much, I never would have solved this myself, but now that i look at it its not that complicated. Thanks again!!!

+ 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