+ Reply to Thread
Results 1 to 3 of 3

Excel 2007 : Trouble with IF statement

Hybrid View

  1. #1
    Registered User
    Join Date
    04-26-2010
    Location
    nebraska
    MS-Off Ver
    Excel 2007
    Posts
    13

    Trouble with IF statement

    Morning,

    I really don't know why I'm having such an issue with this. I am trying to make a spreadsheet for a "Biggest Loser" contest and want to take the difference of the starting weight in B2 from the weight in the rightmost cell. So, if there is a weight in D2 I want it to use that weight for the calculation, but if there is a weight in E2 I want to use that weight - and so on until the end of the competition. I attached the spreadsheet for further explanation of what I attempted to do. It is not working, though. I am getting "#NAME?" as my result.

    I searched for awhile to find a solution but I think I wasn't searching very well. I apologize for this being such a simple problem. Any help would be greatly appreciated.

    Adam
    Attached Files Attached Files

  2. #2
    Registered User
    Join Date
    04-26-2010
    Location
    nebraska
    MS-Off Ver
    Excel 2007
    Posts
    13

    Re: Trouble with IF statement

    I fixed the issue. It really is too early for me this morning. I was only using "AA" for the cell reference, not "AA2". Sorry everyone.

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

    Re: Trouble with IF statement

    FYI - you can avoid all of those IFs by using:

    =$B2-INDEX($C2:$M2,$AA2)

+ 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