LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
greencecil
 
Posts: n/a
Default Lookup function problem (kg)

Hi, I have written a function that searches in a list of units, when it finds
the right unit, it chooses the factor associated with that unit for further
use in my calculations. I have used this function many times, without any
problems (the function is in Norwegian, where HVIS = IF and SLÃ….OPP=LOOKUP:
HVIS(SLÃ….OPP('Inputdata'!$J$26;Units!$F$36:$F$41) ='Inputdata'!$J$26;SLÃ….OPP('Inputdata'!$J$26;Unit s!$F$36:$F$41;Units!$G$36:$G$41);0

The unit chosen is in cell J26 in the 'Inputdata' sheet and the function
I've written looks in the sheet 'units!' in cells F36:F41 for the same text.
If it finds it it returns the value (calculation factor I need) in the
corresponding row in the next column (G). This has worked totally fine with
all the units I have tried (e.g. MJ/t, l/t etc.), except when looking for
sets of units beginning with 'kg/'
Is there a reason for this?
is the text 'kg' or 'kg/' unrecognisable by the lookup function?
The units in the list F36:F41 are sorted alphabetically and I have also
asked colleagues to check that I know my alphabet. Apparently I do!

So any tips?

At the moment I'm tempted to just use tonnes as units and make the user type
in 0,5 tonnes instead of 500 kg, but I don't like not understanding why I
can't give them the kg option.
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Problem with Excel SUM function JoeD Excel Worksheet Functions 7 June 8th 05 04:19 PM
LOOKUP function Heath Excel Worksheet Functions 3 April 29th 05 08:18 PM
Lookup Function Ademar Excel Worksheet Functions 7 November 8th 04 11:50 PM
Vector lookup function GregTh Excel Worksheet Functions 1 November 4th 04 08:34 PM
Another Lookup function, please Butch Excel Worksheet Functions 3 November 3rd 04 08:52 AM


All times are GMT +1. The time now is 04:30 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"