#1   Report Post  
Chiccada
 
Posts: n/a
Default formula query

Hi all,

Got a quick question for ya's.

I am currently trying to hash out a formula along these lines:
=IF(F2="new","=vlookup(A2,p,2,0)",0)

I have tried adding the 'indirect' function but it still brings me no joy.

Any help would be greatly appreciated.

Regards,

Rikki

  #2   Report Post  
Leo Heuser
 
Posts: n/a
Default

Hi Rikki

How about:

=IF(F2="new",vlookup(A2,p,2,0),0)


--
Best Regards
Leo Heuser

Followup to newsgroup only please.

"Chiccada" skrev i en meddelelse
...
Hi all,

Got a quick question for ya's.

I am currently trying to hash out a formula along these lines:
=IF(F2="new","=vlookup(A2,p,2,0)",0)

I have tried adding the 'indirect' function but it still brings me no joy.

Any help would be greatly appreciated.

Regards,

Rikki



  #3   Report Post  
Chiccada
 
Posts: n/a
Default

Cheers for that, it kinda works, but i need the A2 part of the formula to
move down with initial part of the formula eg. f2 and a2, f44 and a44 and so
forth.

"Leo Heuser" wrote:

Hi Rikki

How about:

=IF(F2="new",vlookup(A2,p,2,0),0)


--
Best Regards
Leo Heuser

Followup to newsgroup only please.

"Chiccada" skrev i en meddelelse
...
Hi all,

Got a quick question for ya's.

I am currently trying to hash out a formula along these lines:
=IF(F2="new","=vlookup(A2,p,2,0)",0)

I have tried adding the 'indirect' function but it still brings me no joy.

Any help would be greatly appreciated.

Regards,

Rikki




  #4   Report Post  
Leo Heuser
 
Posts: n/a
Default

"Chiccada" skrev i en meddelelse
...
Hi all,

Got a quick question for ya's.

I am currently trying to hash out a formula along these lines:
=IF(F2="new","=vlookup(A2,p,2,0)",0)

I have tried adding the 'indirect' function but it still brings me no

joy.

Any help would be greatly appreciated.

Regards,

Rikki

"Leo Heuser" wrote:


Hi Rikki

How about:

=IF(F2="new",vlookup(A2,p,2,0),0)


--
Best Regards
Leo Heuser

Followup to newsgroup only please.


"Chiccada" skrev i en meddelelse
...
Cheers for that, it kinda works, but i need the A2 part of the formula to
move down with initial part of the formula eg. f2 and a2, f44 and a44 and

so
forth.

What do you mean by "move down"?
Apparently it has nothing to do with
copying the formula down.

Please clarify.

LeoH


  #5   Report Post  
Chiccada
 
Posts: n/a
Default

I got it sussed now.

Thanks a million,

Riks

"Chiccada" wrote:

Hi all,

Got a quick question for ya's.

I am currently trying to hash out a formula along these lines:
=IF(F2="new","=vlookup(A2,p,2,0)",0)

I have tried adding the 'indirect' function but it still brings me no joy.

Any help would be greatly appreciated.

Regards,

Rikki



  #6   Report Post  
den4673
 
Posts: n/a
Default

You have me curious...what was the solution? When I copied the formula
down the references changed with it. Also, doesn't the reference to p
in the vlookup have to be a range or range name?

  #7   Report Post  
Chiccada
 
Posts: n/a
Default

yeah the references did change, its just i wasnt using the formula in the
correct corresponding row as i had begun to do the task manually. Also the
'p' reference is the range name. I just use single letters as its quicker.

"den4673" wrote:

You have me curious...what was the solution? When I copied the formula
down the references changed with it. Also, doesn't the reference to p
in the vlookup have to be a range or range name?


  #8   Report Post  
den4673
 
Posts: n/a
Default

Thanks, I should have figured that one out. That is a good idea to use
letters for range names, it makes it much easier. I think I will start
doing that as well.

Dennis

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
how do I make a formula NOT change when the data range is moved? Alida Andrews Excel Discussion (Misc queries) 2 January 6th 05 09:02 PM
Query of External Data Excel GuRu Excel Discussion (Misc queries) 2 January 3rd 05 07:43 PM
Converting an Excel formula to an Access query formula Adam Excel Discussion (Misc queries) 1 December 15th 04 03:38 AM
How to use a Access Query that as a parameter into Excel database query Karen Middleton Excel Discussion (Misc queries) 1 December 13th 04 07:54 PM
formula query johan Excel Discussion (Misc queries) 2 December 2nd 04 04:15 PM


All times are GMT +1. The time now is 04:52 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"