Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default changing the value of one cell using another cell

Hi, i dont know if this is possible
Im trying to make a search option in excel using VLOOKUP and withou
using controls.

Lets say A1 can either be "A" or "B" (using validation list)

if A1="A"
B1=" " (this is currently the search box)
B2=VLOOKUP(E1,R1:T7,2,FALSE) -simply a formula

now if A1="B"
B1=VLOOKUP(F1,G1:Y7,3,FALSE)
B2=" " (this is now the search box)

I dunno if its possible, and if it is what should i do? im not familia
with VB either

--
Message posted from http://www.ExcelForum.com

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,089
Default changing the value of one cell using another cell

Not exactly sure what you are trying to do, but this might work:

B1:
=IF(A1="A",IF(ISNA(VLOOKUP(F1,G1:Y7,3,FALSE)),"",V LOOKUP(F1,G1:Y7,3,FALSE)),
"")
B2:
=IF(A1="B",IF(ISNA(VLOOKUP(E1,R1:T7,2,FALSE)),"",V LOOKUP(E1,R1:T7,2,FALSE)),
"")

Regards

Trevor


"karlo " wrote in message
...
Hi, i dont know if this is possible
Im trying to make a search option in excel using VLOOKUP and without
using controls.

Lets say A1 can either be "A" or "B" (using validation list)

if A1="A"
B1=" " (this is currently the search box)
B2=VLOOKUP(E1,R1:T7,2,FALSE) -simply a formula

now if A1="B"
B1=VLOOKUP(F1,G1:Y7,3,FALSE)
B2=" " (this is now the search box)

I dunno if its possible, and if it is what should i do? im not familiar
with VB either.


---
Message posted from http://www.ExcelForum.com/



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 108
Default changing the value of one cell using another cell

Not too sure on this one but if you want to change the
contents of B1 and B2 depending on the selection in A just
use a nested IF

B1=IF(A1=A, " ", VLOOKUP(E1,R1:T7,2,FALSE))
B2=IF(A1=A, VLOOKUP(E1,R1:T7,2,FALSE), " ")

Not too sure what you mean by "search box" so this may not
be what you are looking for.

Paul


-----Original Message-----
Hi, i dont know if this is possible
Im trying to make a search option in excel using VLOOKUP

and without
using controls.

Lets say A1 can either be "A" or "B" (using validation

list)

if A1="A"
B1=" " (this is currently the search box)
B2=VLOOKUP(E1,R1:T7,2,FALSE) -simply a formula

now if A1="B"
B1=VLOOKUP(F1,G1:Y7,3,FALSE)
B2=" " (this is now the search box)

I dunno if its possible, and if it is what should i do?

im not familiar
with VB either.


---
Message posted from http://www.ExcelForum.com/

.

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
Changing the cell format doesn't change existing cell content Kate Excel Discussion (Misc queries) 2 January 14th 10 04:44 PM
how blank data validation cell after changing dependent cell? Ian Elliott Excel Discussion (Misc queries) 5 August 16th 09 02:42 AM
Code to copy the formulae of one cell to all the cell in the rangewith the specific cell and columnnumber changing Options Yuvraj Excel Discussion (Misc queries) 0 June 29th 09 11:20 AM
Code to copy the formulae of one cell to all the cell in the rangewith the specific cell and columnnumber changing Yuvraj Excel Discussion (Misc queries) 0 June 26th 09 06:01 PM
Cell colors or text color changing when date in cell gets closer. Chase Excel Worksheet Functions 5 October 19th 06 08:57 AM


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

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"