A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Excel » General Discussion
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Lookup formula



 
 
Thread Tools Display Modes
  #1  
Old April 21st, 2010, 01:46 PM posted to microsoft.public.excel.misc
Michael
external usenet poster
 
Posts: 1,186
Default Lookup formula

Hi,

I have a lookup formula like this:

=IF(ISERROR(IF($D1="ruth baybutt",HLOOKUP(A$3,ruth
baybut!F:N,3,0),HLOOKUP(A$3,sheet1!F:N,3,0))),0,IF ($D1="ruth
baybutt",HLOOKUP(A$3,ruthbaybutt!F:N,3,0),HLOOKUP( A$3,sheet1!F:N,3,0)))

So basically it is looking to see if cell d1 exists on the ruth baybut sheet
and if so looking up a formula on that sheet, if not then it is looking up
the formula on sheet1 instead.

Is there a quicker/smaller formula for doing this please?
  #2  
Old April 21st, 2010, 02:14 PM posted to microsoft.public.excel.misc
Michael
external usenet poster
 
Posts: 1,186
Default Lookup formula

posted twice in error

"Michael" wrote:

Hi,

I have a lookup formula like this:

=IF(ISERROR(IF($D1="ruth baybutt",HLOOKUP(A$3,ruth
baybut!F:N,3,0),HLOOKUP(A$3,sheet1!F:N,3,0))),0,IF ($D1="ruth
baybutt",HLOOKUP(A$3,ruthbaybutt!F:N,3,0),HLOOKUP( A$3,sheet1!F:N,3,0)))

So basically it is looking to see if cell d1 exists on the ruth baybut sheet
and if so looking up a formula on that sheet, if not then it is looking up
the formula on sheet1 instead.

Is there a quicker/smaller formula for doing this please?

 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 02:21 AM.


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