+ Reply to Thread
Results 1 to 5 of 5

Lookup (Unknown errors?)

  1. #1
    Forum Contributor
    Join Date
    11-11-2007
    Posts
    263

    Lookup (Unknown errors?)

    Ok, I have gotten a little further with the spreadsheet I'm working on. (working 2 jobs really don't give for a lot of time to spend on it)

    Here is the issue:

    In the attached file I'm attempting to create a Building Cost Estimate list, it takes the level, then looks it up, and spits it back out, and after it does that it multiples it by the amount you require:

    =LOOKUP(B27,'Cost Expendatures'!H4:I24)*G27

    This is for wood, looking at how much wood it would take at a given level. This I have no problem with.

    The problem is when I actually attempt it at another field such as the Iron, using the same calculation with the $ signs in it so to keep some of the math the same:

    =LOOKUP($B$29,'Cost Expendatures'!$H$52:I77)*$G$29

    This for some reason doesn't work.... It should, but it doesn't...any help would be appreciated on figuring out why...
    Attached Files Attached Files

  2. #2
    Forum Expert daddylonglegs's Avatar
    Join Date
    01-14-2006
    Location
    England
    MS-Off Ver
    2016
    Posts
    14,675
    Some of the values in I52:I77 contain spaces, e.g. 1 300. If these are meant to be numbers then do an edit replace and replace space with nothing then your formula should work.

    At the moment the LOOKUP returns 1 300 which is a text string not a number. When you try to multiply this by a number you get an error

  3. #3
    Forum Expert oldchippy's Avatar
    Join Date
    02-14-2005
    Location
    Worcester, UK
    MS-Off Ver
    Excel 2007 (Home)
    Posts
    7,097
    Hi,

    The errors are caused by your numbers in your Iron table, you need to remove the spaces, Excel is reading these as text and not numbers.
    oldchippy
    -------------


    Blessed are those who can give without remembering and take without forgetting

    If you are happy with the help you have received, please click the <--- STAR icon on the left - Thanks.

    Click here >>> Top Excel links for beginners to Experts

    Forum Rules >>>Please don't forget to read these

  4. #4
    Forum Contributor
    Join Date
    11-11-2007
    Posts
    263
    Quote Originally Posted by oldchippy
    Hi,

    The errors are caused by your numbers in your Iron table, you need to remove the spaces, Excel is reading these as text and not numbers.
    Gah, I thought I fixed that, thanks

  5. #5
    Forum Expert oldchippy's Avatar
    Join Date
    02-14-2005
    Location
    Worcester, UK
    MS-Off Ver
    Excel 2007 (Home)
    Posts
    7,097
    No problem - thanks for the feedback

+ 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