#1   Report Post  
briank
 
Posts: n/a
Default Vlookup Bmp

I am trying to integrate a vlookup command with a bmp. I have a bmp located
on my c: drive and I want to show this in cell B1. Ideally I want to copy
this formula down several cells as well. Am I close to getting the formula
below to work?

=IF(VLOOKUP(C4, PicTable, 2, FALSE)="State",activesheet.picture.insert
("C:\Documents and Settings\a-brjohn\State.bmp"),"")
  #2   Report Post  
Jason Morin
 
Posts: n/a
Default

You can't do it with a formula. Either use VBA - J.E.
McGimpsey has a nice example using a validation list:

http://www.mcgimpsey.com/excel/lookuppics.html

Or see Andy Pope's site. He has an example using an XY
scatter chart (no VBA required):

http://www.andypope.info/fun/picviewer.htm

HTH
Jason
Atlanta, GA

-----Original Message-----
I am trying to integrate a vlookup command with a bmp.

I have a bmp located
on my c: drive and I want to show this in cell B1.

Ideally I want to copy
this formula down several cells as well. Am I close to

getting the formula
below to work?

=IF(VLOOKUP(C4, PicTable, 2, FALSE)

="State",activesheet.picture.insert
("C:\Documents and Settings\a-brjohn\State.bmp"),"")
.

  #3   Report Post  
Dave Peterson
 
Posts: n/a
Default

You're mixing excel formulas with VBA and that won't work.

But J.E. McGimpsey has a routine you may like:
http://www.mcgimpsey.com/excel/lookuppics.html
He has a neat way of doing things like this.

briank wrote:

I am trying to integrate a vlookup command with a bmp. I have a bmp located
on my c: drive and I want to show this in cell B1. Ideally I want to copy
this formula down several cells as well. Am I close to getting the formula
below to work?

=IF(VLOOKUP(C4, PicTable, 2, FALSE)="State",activesheet.picture.insert
("C:\Documents and Settings\a-brjohn\State.bmp"),"")


--

Dave Peterson
  #4   Report Post  
briank
 
Posts: n/a
Default

Thank you for the link. Although this web site allow the user to change the
photo based upon a drop down menu I am having trouble figuring out how to
modify the pictures to my own photos as well as figuring out how to copy the
formula down several rows. Any help would be appreciated.

"Dave Peterson" wrote:

You're mixing excel formulas with VBA and that won't work.

But J.E. McGimpsey has a routine you may like:
http://www.mcgimpsey.com/excel/lookuppics.html
He has a neat way of doing things like this.

briank wrote:

I am trying to integrate a vlookup command with a bmp. I have a bmp located
on my c: drive and I want to show this in cell B1. Ideally I want to copy
this formula down several cells as well. Am I close to getting the formula
below to work?

=IF(VLOOKUP(C4, PicTable, 2, FALSE)="State",activesheet.picture.insert
("C:\Documents and Settings\a-brjohn\State.bmp"),"")


--

Dave Peterson

  #5   Report Post  
Dave Peterson
 
Posts: n/a
Default

You have to add all your pictures to the worksheet. J.E. shows that in his
instructions.

Then the code hides/shows the pictures.

It works nicely if there's only one picture that should be visible.

You may want to post back with your real requirements if this isn't what you had
in mind.

briank wrote:

Thank you for the link. Although this web site allow the user to change the
photo based upon a drop down menu I am having trouble figuring out how to
modify the pictures to my own photos as well as figuring out how to copy the
formula down several rows. Any help would be appreciated.

"Dave Peterson" wrote:

You're mixing excel formulas with VBA and that won't work.

But J.E. McGimpsey has a routine you may like:
http://www.mcgimpsey.com/excel/lookuppics.html
He has a neat way of doing things like this.

briank wrote:

I am trying to integrate a vlookup command with a bmp. I have a bmp located
on my c: drive and I want to show this in cell B1. Ideally I want to copy
this formula down several cells as well. Am I close to getting the formula
below to work?

=IF(VLOOKUP(C4, PicTable, 2, FALSE)="State",activesheet.picture.insert
("C:\Documents and Settings\a-brjohn\State.bmp"),"")


--

Dave Peterson


--

Dave Peterson
Reply
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
make a vlookup using a variable path Alex St-Pierre Excel Worksheet Functions 1 March 2nd 05 11:54 PM
vlookup data hidden within worksheet Excel Worksheet Functions 0 January 26th 05 12:09 PM
Vlookup info being used without vlookup table attached? Excel Worksheet Functions 0 January 25th 05 10:43 AM
Can VLOOKUP return multiple answers based on several identical lo. jddtct Excel Worksheet Functions 3 January 11th 05 07:03 AM
VLOOKUP not working Scott Excel Worksheet Functions 3 November 12th 04 08:06 PM


All times are GMT +1. The time now is 06:16 PM.

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

About Us

"It's about Microsoft Excel"