Focal Point
VLOOKUP using xls created by WebFOCUS

This topic can be found at:
http://forums.informationbuilders.com/eve/forums/a/tpc/f/7971057331/m/8421063882

June 18, 2008, 02:06 PM
linus
VLOOKUP using xls created by WebFOCUS
We have a current Core FOCUS process where people run a fex and save the output into LOTUS format then manually ftp it to their hard drive. They cut and paste the data into a different workbook where one tab performs a VLOOKUP against the tab containing the newly pasted data. If I run this same query in WF in EXL2K format and do the other steps which they perform the vlookup function fails. Both outputs have the data as 'General' format. I'm assuming that even though to the naked eye the LOTUS and EXCEL spreadsheets look the same there is something different that I'm not seeing. If anyone has any insight into using VLOOKUP with EXL2K spreadsheets from WF I'd appreciate any pointers.

WF Reporting Server and Core FOCUS are both on the same HP UX box. WF 7.1.4, Core FOCUS is 6.9

Thanks...


WF 7.7.05
HP-UX - Reporting Server, Windows 2008 - Client, MSSQL 2008, FOCUS Databases, Flat Files
HTML, Excel, PDF
June 18, 2008, 06:33 PM
susannah
Linus
it depends on the field.
GEneral format doesn't mean much.
If the field (base of vlookup) is numeric,
then compare its value with the VALUE(a1) function, to the field in the lookup table.
If alpha, then compare using a straight compare
=A1=Sheet2!A1, and if you get a FALSE, which i expect you will, you can then investigate why the 2 fields don't match.
Remember, if the field is numeric, excel likes to carry alot of decimal places under the covers, so you need to pay special attn.




In Focus since 1979///7706m/5 ;wintel 2008/64;OAM security; Oracle db, ///MRE/BID
June 18, 2008, 06:39 PM
Leah
As I recall, lotus format is just a comma delimited file, which means the way it's handled in a spreadsheet would be different from an xls format, would by my guess.


Leah
June 19, 2008, 02:10 AM
Tony A
Linus,

If you are using Excel templates then I think that your real problem is possibly that your lookup reference is made to a sheet range and not a named range within Excel.

As I have mentioned recently, when WF outputs to an Excel template it actual creates a "new" sheet and therefore the name is different to what you'd expect.

When ever I output to Excel, if I want anything other than what WF can supply easily, I rely upon macros to achieve the required result. So essentially I use WF to supply the data extract into Excel (using push rather than pull as in an Excel query).

You can use WF to name a range (I think?) and you could utilise that facility for your VLOOKUP perhaps?

T



In FOCUS
since 1986
WebFOCUS Server 8.2.01M, thru 8.2.06 on Windows Svr 2008 R2  
WebFOCUS App Studio 8.2.06 standalone on Windows 10 
June 19, 2008, 08:15 AM
linus
Actually, what's happening is the end user is re-formatting the spreadsheet used for the vlookup every time they paste the data into the spreadsheet. End user behavior is beyond my control. Wink


WF 7.7.05
HP-UX - Reporting Server, Windows 2008 - Client, MSSQL 2008, FOCUS Databases, Flat Files
HTML, Excel, PDF
June 19, 2008, 09:58 AM
Tony A
Easily solved, chop off their fingers or remove their keyboard - the latter option tends to be less messy though Wink

T



In FOCUS
since 1986
WebFOCUS Server 8.2.01M, thru 8.2.06 on Windows Svr 2008 R2  
WebFOCUS App Studio 8.2.06 standalone on Windows 10 
June 20, 2008, 08:59 AM
PBrightwell
Careful Tony, you'll have her thinking about the fingers thing. Winky


Pat
WF 7.6.8, AIX, AS400, NT
AS400 FOCUS, AIX FOCUS,
Oracle, DB2, JDE, Lotus Notes
June 24, 2008, 09:18 AM
linus
You know me too well Pat! Big Grin


WF 7.7.05
HP-UX - Reporting Server, Windows 2008 - Client, MSSQL 2008, FOCUS Databases, Flat Files
HTML, Excel, PDF
June 24, 2008, 10:17 AM
Tony A
I find carrying a nice pair of secateurs in the back pocket keeps the user base honest Wink The anvil variety tend to give a cleaner cut than the shear type.

T
June 25, 2008, 09:13 AM
PBrightwell
ROTFLMAO


Pat
WF 7.6.8, AIX, AS400, NT
AS400 FOCUS, AIX FOCUS,
Oracle, DB2, JDE, Lotus Notes