PC Review


Reply
Thread Tools Rate Thread

2 woorksheets 1 workbook, help with lookup

 
 
David D
Guest
Posts: n/a
 
      25th Jun 2007
1st worksheet;
fill in form cell A1= inches_____
cell A2=gallons_____

2nd worksheet=lookup sheet

Column A= inches
Column B = gallons

the inches column goes from 1 - 98 down 2 pages with headings on both pages,
I need 1st worksheet to lookup the inches entered and fill in the gallons
from the 2nd worksheet.

this happens in 6 locations on the 1st. worksheet, I can modify the initial
solution for the other locations, just need help getting the 1st. lookup
going.

Thanks in advance, David


 
Reply With Quote
 
 
 
 
Sandy Mann
Guest
Posts: n/a
 
      25th Jun 2007
Try:

=IF(B1="","",VLOOKUP(B1,Sheet2!A1:B98,2,0))

--
HTH

Sandy
In Perth, the ancient capital of Scotland
and the crowning place of kings

(E-Mail Removed)
Replace @mailinator.com with @tiscali.co.uk


"David D" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> 1st worksheet;
> fill in form cell A1= inches_____
> cell A2=gallons_____
>
> 2nd worksheet=lookup sheet
>
> Column A= inches
> Column B = gallons
>
> the inches column goes from 1 - 98 down 2 pages with headings on both
> pages, I need 1st worksheet to lookup the inches entered and fill in the
> gallons from the 2nd worksheet.
>
> this happens in 6 locations on the 1st. worksheet, I can modify the
> initial solution for the other locations, just need help getting the 1st.
> lookup going.
>
> Thanks in advance, David
>
>



 
Reply With Quote
 
David D
Guest
Posts: n/a
 
      26th Jun 2007
I'm not sure this works, or am not understanding the lookup...a little help,
thanks

David

"Sandy Mann" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> Try:
>
> =IF(B1="","",VLOOKUP(B1,Sheet2!A1:B98,2,0))
>
> --
> HTH
>
> Sandy
> In Perth, the ancient capital of Scotland
> and the crowning place of kings
>
> (E-Mail Removed)
> Replace @mailinator.com with @tiscali.co.uk
>
>
> "David D" <(E-Mail Removed)> wrote in message
> news:(E-Mail Removed)...
>> 1st worksheet;
>> fill in form cell A1= inches_____
>> cell A2=gallons_____
>>
>> 2nd worksheet=lookup sheet
>>
>> Column A= inches
>> Column B = gallons
>>
>> the inches column goes from 1 - 98 down 2 pages with headings on both
>> pages, I need 1st worksheet to lookup the inches entered and fill in the
>> gallons from the 2nd worksheet.
>>
>> this happens in 6 locations on the 1st. worksheet, I can modify the
>> initial solution for the other locations, just need help getting the 1st.
>> lookup going.
>>
>> Thanks in advance, David
>>
>>

>
>



 
Reply With Quote
 
Sandy Mann
Guest
Posts: n/a
 
      26th Jun 2007
Perhaps it is me who is not understanding your requirements.

Here is what I did:

Sheet1:
Cell A1 entered "Inches" (without the quotes)
Cell A2 entered "Gallons" (again without the quotes)

Sheet2:
A1 "Inches"
in A2:A99 the numbers 1 to 98
B1 "Gallons"
in B2:B99 the number of gallons. (in my case for ease of testing I just
entered 10* the number of inches)

Sheet1:
Cell A2 thre formula:

=IF(B1="","",VLOOKUP(B1,Sheet2!A2:B99,2,0))

The first part checks to see of there is anything in cell B1 and if not
returns an empty string which makes the cell look blank.
If there is a number in B1 then the VLOOKUP() searches down the first column
of the range A2:B99 looking for an exact match and, if it finds one it
returns the value from the 2nd column - in this case the same row in Column
B. The zero, (or sometimes you will see people using FALSE), at the end
tells the fuction to look for an exat match.

If it fails to find a match then it returns #N/A. If you don't want to see
the #N/A then use the formula:

=IF(B1="","",IF(ISERROR(VLOOKUP(B1,Sheet2!A2:B99,2,0)),"Error",VLOOKUP(B1,Sheet2!A2:B99,2,0)))

Post back if you still need help.

--
HTH

Sandy
In Perth, the ancient capital of Scotland
and the crowning place of kings

(E-Mail Removed)
Replace @mailinator.com with @tiscali.co.uk


"David D" <(E-Mail Removed)> wrote in message
news:u7Zcpm%(E-Mail Removed)...
> I'm not sure this works, or am not understanding the lookup...a little
> help, thanks
>
> David
>
> "Sandy Mann" <(E-Mail Removed)> wrote in message
> news:(E-Mail Removed)...
>> Try:
>>
>> =IF(B1="","",VLOOKUP(B1,Sheet2!A1:B98,2,0))
>>
>> --
>> HTH
>>
>> Sandy
>> In Perth, the ancient capital of Scotland
>> and the crowning place of kings
>>
>> (E-Mail Removed)
>> Replace @mailinator.com with @tiscali.co.uk
>>
>>
>> "David D" <(E-Mail Removed)> wrote in message
>> news:(E-Mail Removed)...
>>> 1st worksheet;
>>> fill in form cell A1= inches_____
>>> cell A2=gallons_____
>>>
>>> 2nd worksheet=lookup sheet
>>>
>>> Column A= inches
>>> Column B = gallons
>>>
>>> the inches column goes from 1 - 98 down 2 pages with headings on both
>>> pages, I need 1st worksheet to lookup the inches entered and fill in the
>>> gallons from the 2nd worksheet.
>>>
>>> this happens in 6 locations on the 1st. worksheet, I can modify the
>>> initial solution for the other locations, just need help getting the
>>> 1st. lookup going.
>>>
>>> Thanks in advance, David
>>>
>>>

>>
>>

>
>
>



 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Copy and Paste to multiple woorksheets at one time ManhattanRebel Microsoft Excel Misc 0 12th Feb 2009 07:16 PM
lookup in 1 workbook to get data for another workbook =?Utf-8?B?bmV3X3RvX3ZiYQ==?= Microsoft Excel Worksheet Functions 0 21st Jun 2007 04:35 AM
Loop thru woorksheets Striker Microsoft Excel Programming 1 26th Sep 2006 02:28 AM
Consolidate Woorksheets =?Utf-8?B?RFRUT0RHRw==?= Microsoft Excel Worksheet Functions 0 7th Nov 2005 03:35 PM
Sharing woorksheets =?Utf-8?B?Y2xlbXJvZ2Fu?= Microsoft Excel Worksheet Functions 0 25th Apr 2005 04:35 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 01:18 PM.