+ Reply to Thread
Results 1 to 9 of 9

Index formula not working or advise best formula

  1. #1
    Forum Contributor
    Join Date
    10-09-2010
    Location
    London
    MS-Off Ver
    Excel Version Office 365
    Posts
    211

    Index formula not working or advise best formula

    Can someone please assit me as I have been trying to work out why the formul is not picking the correct number for the last hour with little luck.

    In the attached spreadsheet M48, N48 & M49, N49. The formula is not working after multiplying by the column J.

    When column J is positive you would expect columns M and N to give a postive number.

    When column J is negative it should be negative in M and N.

    I would be grateful for any guidance or better way of writing the formula.

    Thanks a million
    Attached Files Attached Files

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

    Re: Index formula not working or advise best formula

    I'm not sure what the problem is.. if I type a positive number in J28, I get positive results, if I type a negative number I get negative results... where exactly is the issue?
    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
    Forum Contributor
    Join Date
    10-09-2010
    Location
    London
    MS-Off Ver
    Excel Version Office 365
    Posts
    211

    Re: Index formula not working or advise best formula

    Thank you for your response. The amount that I expect is not being calculated correctly as shown in COLUMN R
    Last edited by Cutter; 07-16-2012 at 03:41 PM. Reason: Removed whole post quote

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

    Re: Index formula not working or advise best formula

    In Row 22 of the Tracker sheet, at column where EU is shown in row 3, the amount is 73,906 if you multiply by J28 (which is currently 1), you get 73,906. Why/when should M28 be 46,077?

  5. #5
    Forum Expert Ace_XL's Avatar
    Join Date
    06-04-2012
    Location
    UAE
    MS-Off Ver
    2016
    Posts
    6,074

    Re: Index formula not working or advise best formula

    You are looking up row 22 and expecting answers of Row 5. Perhaps this is what you need

    Replace Data!$B$22:$L$22 with Data!$B$5:$L$5
    Life's a spreadsheet, Excel!
    Say thanks, Click *

  6. #6
    Forum Contributor
    Join Date
    10-09-2010
    Location
    London
    MS-Off Ver
    Excel Version Office 365
    Posts
    211

    Re: Index formula not working or advise best formula

    Column m should pick up row 5 from the data sheet and column n should be the sum of row 6 to row 20 depending on the grade for example eu and then it considers whether column j is positive or negative.

    Hope this helps.


    Quote Originally Posted by nbvc View Post
    in row 22 of the tracker sheet, at column where eu is shown in row 3, the amount is 73,906 if you multiply by j28 (which is currently 1), you get 73,906. Why/when should m28 be 46,077?

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

    Re: Index formula not working or advise best formula

    Then it is as Ace_XL says.. you should be looking at row 5 in the formul in M28.

    =IF(ISNA(MATCH(L48,Data!$B$3:$L$3,0)),"",(INDEX(Data!$B$5:$L$5,1,MATCH(L48,Data!$B$3:$L$3,0)))*J48)

  8. #8
    Forum Expert Ace_XL's Avatar
    Join Date
    06-04-2012
    Location
    UAE
    MS-Off Ver
    2016
    Posts
    6,074

    Re: Index formula not working or advise best formula

    Use

    In M48
    =IF(ISNA(MATCH(L48,Data!$B$3:$L$3,0)),"",(INDEX(Data!$B$5:$L$5,1,MATCH(L48,Data!$B$3:$L$3,0)))*J48)
    In N48
    =IF(ISNA(MATCH(L48,Data!$B$3:$L$3,0)),"",(INDEX(Data!$B$22:$L$22,1,MATCH(L48,Data!$B$3:$L$3,0))-ABS(M48))*J48)

  9. #9
    Forum Contributor
    Join Date
    10-09-2010
    Location
    London
    MS-Off Ver
    Excel Version Office 365
    Posts
    211

    Re: Index formula not working or advise best formula

    Thanks a million - you have solved the problem

+ 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