+ Reply to Thread
Page 2 of 2 FirstFirst 12
Results 16 to 23 of 23
  1. #16
    Forum Moderator DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Suffolk, UK
    MS-Off Ver
    2002, 2007 & 2010
    Posts
    21,379

    Re: Using a column in If Else statement

    Yes, change the last formula you posted in line with the prior suggestion
    (modify the Row element of the INDEX to use the 255 MOD rather than the Column element of the INDEX as attempted previously)

    Please do not quote entire posts in your reply - this is just clutter.

  2. #17
    Registered User
    Join Date
    03-09-2010
    Location
    Manila, Philippines
    MS-Off Ver
    Excel 2003
    Posts
    16

    Re: Using a column in If Else statement

    =INDEX($D3:$K$2108,1+MOD($B3,255),1+MOD($B3,8)) I have done this, but it just goes down for 40 cells it is in the column H (89) and it gets the value of 61 but the MOD 255 of B3 is 84. So it must go down 84 cells? What must be the problem?

  3. #18
    Forum Moderator DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Suffolk, UK
    MS-Off Ver
    2002, 2007 & 2010
    Posts
    21,379

    Re: Using a column in If Else statement

    Post a sample - illustrate desired results for a number of different scenarios.

  4. #19
    Registered User
    Join Date
    03-09-2010
    Location
    Manila, Philippines
    MS-Off Ver
    Excel 2003
    Posts
    16

    Re: Using a column in If Else statement

    For example i have only 1 column and it has many rows lets use the column D, is it possible that doing MOD(B3,8) drops down to 4 and selects the 215 value, for MOD(B4,8) is 0 it will select 91 and for MOD(B5,8) is 5 it will start at 221 and drops down to the value of 110 and selects it? It is like a series.

  5. #20
    Forum Moderator DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Suffolk, UK
    MS-Off Ver
    2002, 2007 & 2010
    Posts
    21,379

    Re: Using a column in If Else statement

    by the below I meant a file...

    Quote Originally Posted by DonkeyOte View Post
    Post a sample - illustrate desired results for a number of different scenarios.

  6. #21
    Registered User
    Join Date
    03-09-2010
    Location
    Manila, Philippines
    MS-Off Ver
    Excel 2003
    Posts
    16

    Re: Using a column in If Else statement

    It is like this.
    Attached Files Attached Files

  7. #22
    Forum Moderator DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Suffolk, UK
    MS-Off Ver
    2002, 2007 & 2010
    Posts
    21,379

    Re: Using a column in If Else statement

    Using the attachment in prior post in conjunction with narrative in post #19 perhaps you want:

    G3: =1+MOD($B3,8)
    copied down

    F3: =INDEX($D$3:$D$2108,SUM($G$3:$G3))
    copied down

  8. #23
    Registered User
    Join Date
    03-09-2010
    Location
    Manila, Philippines
    MS-Off Ver
    Excel 2003
    Posts
    16

    Re: Using a column in If Else statement

    Thanks for the help! i added another column to satisfy the value that needs to be selected which is =G4+1 (copied down). I really appreciate the help! Thank you very much!

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.2.0