PC Review


Reply
Thread Tools Rate Thread

Displaying a number from another column

 
 
Natalie
Guest
Posts: n/a
 
      4th Aug 2006
Hi,

Need some help:

Let's say I have a list of numbers in column A:

A1:1
A2:2
A3:3
An:n

And another list of random numbers in column B:

B1: 2.3
B2: 3.5
B3: 55.6
Bn: <some random number>

If I enter a number in cell C1=An, how do I make cell D1 display the
corresponding B column value?

Eg: If in C1, I enter "2", how do I make D1 show "55.6"

Thanks!

 
Reply With Quote
 
 
 
 
Pete_UK
Guest
Posts: n/a
 
      4th Aug 2006
Enter this in D1:

=VLOOKUP(C1,A1:Bn,2,0)

Change Bn to suit your range. If you have no value in C1 or if the
value is not part of your list, you will get the error message #N/A.

Hope this helps.

Pete

Natalie wrote:
> Hi,
>
> Need some help:
>
> Let's say I have a list of numbers in column A:
>
> A1:1
> A2:2
> A3:3
> An:n
>
> And another list of random numbers in column B:
>
> B1: 2.3
> B2: 3.5
> B3: 55.6
> Bn: <some random number>
>
> If I enter a number in cell C1=An, how do I make cell D1 display the
> corresponding B column value?
>
> Eg: If in C1, I enter "2", how do I make D1 show "55.6"
>
> Thanks!


 
Reply With Quote
 
Dave Peterson
Guest
Posts: n/a
 
      4th Aug 2006
=vlookup(d1,a:b,2,false)

Natalie wrote:
>
> Hi,
>
> Need some help:
>
> Let's say I have a list of numbers in column A:
>
> A1:1
> A2:2
> A3:3
> An:n
>
> And another list of random numbers in column B:
>
> B1: 2.3
> B2: 3.5
> B3: 55.6
> Bn: <some random number>
>
> If I enter a number in cell C1=An, how do I make cell D1 display the
> corresponding B column value?
>
> Eg: If in C1, I enter "2", how do I make D1 show "55.6"
>
> Thanks!


--

Dave Peterson
 
Reply With Quote
 
Dave Peterson
Guest
Posts: n/a
 
      4th Aug 2006
Debra Dalgleish has some notes:
http://www.contextures.com/xlFunctions02.html (for =vlookup())

Natalie wrote:
>
> Hi,
>
> Need some help:
>
> Let's say I have a list of numbers in column A:
>
> A1:1
> A2:2
> A3:3
> An:n
>
> And another list of random numbers in column B:
>
> B1: 2.3
> B2: 3.5
> B3: 55.6
> Bn: <some random number>
>
> If I enter a number in cell C1=An, how do I make cell D1 display the
> corresponding B column value?
>
> Eg: If in C1, I enter "2", how do I make D1 show "55.6"
>
> Thanks!


--

Dave Peterson
 
Reply With Quote
 
Mark
Guest
Posts: n/a
 
      4th Aug 2006

Natalie wrote:
> Hi,
>
> Need some help:
>
> Let's say I have a list of numbers in column A:
>
> A1:1
> A2:2
> A3:3
> An:n
>
> And another list of random numbers in column B:
>
> B1: 2.3
> B2: 3.5
> B3: 55.6
> Bn: <some random number>
>
> If I enter a number in cell C1=An, how do I make cell D1 display the
> corresponding B column value?
>
> Eg: If in C1, I enter "2", how do I make D1 show "55.6"
>
> Thanks!



Use a formula similar to this in cell D1: =VLOOKUP(C1,A1:Bn,2)

 
Reply With Quote
 
Natalie
Guest
Posts: n/a
 
      4th Aug 2006
THANKS ALL FOR THE HELP!!

I have another related question about Vlookup.

I'm trying to lookup a number that has a really long decimal figure:
eg: 2.33334444555666777

Is there anyway I can search for it by just typing "2.3333" instead of
the whole long number? Thanks again!

Nat

Dave Peterson wrote:
> =vlookup(d1,a:b,2,false)
>
> Natalie wrote:
> >
> > Hi,
> >
> > Need some help:
> >
> > Let's say I have a list of numbers in column A:
> >
> > A1:1
> > A2:2
> > A3:3
> > An:n
> >
> > And another list of random numbers in column B:
> >
> > B1: 2.3
> > B2: 3.5
> > B3: 55.6
> > Bn: <some random number>
> >
> > If I enter a number in cell C1=An, how do I make cell D1 display the
> > corresponding B column value?
> >
> > Eg: If in C1, I enter "2", how do I make D1 show "55.6"
> >
> > Thanks!

>
> --
>
> Dave Peterson


 
Reply With Quote
 
Dave Peterson
Guest
Posts: n/a
 
      4th Aug 2006
It depends on what you want to accomplish.

If your table in A1:Bxx is sorted nicely (by column A), you may be able to use:

=VLOOKUP(D1,A:B,2)
which is equivalent to:
=VLOOKUP(D1,A:B,2,TRUE)
(TRUE is the default for that 4th parameter.

But read the help for =vlookup() and experiment a little to see how it works.

This describes the 4th parm from xl2003's help:

Range_lookup is a logical value that specifies whether you want VLOOKUP to
find an exact match or an approximate match. If TRUE or omitted, an approximate
match is returned. In other words, if an exact match is not found, the next
largest value that is less than lookup_value is returned. If FALSE, VLOOKUP will
find an exact match. If one is not found, the error value #N/A is returned.



Natalie wrote:
>
> THANKS ALL FOR THE HELP!!
>
> I have another related question about Vlookup.
>
> I'm trying to lookup a number that has a really long decimal figure:
> eg: 2.33334444555666777
>
> Is there anyway I can search for it by just typing "2.3333" instead of
> the whole long number? Thanks again!
>
> Nat
>
> Dave Peterson wrote:
> > =vlookup(d1,a:b,2,false)
> >
> > Natalie wrote:
> > >
> > > Hi,
> > >
> > > Need some help:
> > >
> > > Let's say I have a list of numbers in column A:
> > >
> > > A1:1
> > > A2:2
> > > A3:3
> > > An:n
> > >
> > > And another list of random numbers in column B:
> > >
> > > B1: 2.3
> > > B2: 3.5
> > > B3: 55.6
> > > Bn: <some random number>
> > >
> > > If I enter a number in cell C1=An, how do I make cell D1 display the
> > > corresponding B column value?
> > >
> > > Eg: If in C1, I enter "2", how do I make D1 show "55.6"
> > >
> > > Thanks!

> >
> > --
> >
> > Dave Peterson


--

Dave Peterson
 
Reply With Quote
 
Natalie
Guest
Posts: n/a
 
      7th Aug 2006
Dave, this is awesome. Thanks again =)

Dave Peterson wrote:
> It depends on what you want to accomplish.
>
> If your table in A1:Bxx is sorted nicely (by column A), you may be able to use:
>
> =VLOOKUP(D1,A:B,2)
> which is equivalent to:
> =VLOOKUP(D1,A:B,2,TRUE)
> (TRUE is the default for that 4th parameter.
>
> But read the help for =vlookup() and experiment a little to see how it works.
>
> This describes the 4th parm from xl2003's help:
>
> Range_lookup is a logical value that specifies whether you want VLOOKUP to
> find an exact match or an approximate match. If TRUE or omitted, an approximate
> match is returned. In other words, if an exact match is not found, the next
> largest value that is less than lookup_value is returned. If FALSE, VLOOKUP will
> find an exact match. If one is not found, the error value #N/A is returned.
>
>
>
> Natalie wrote:
> >
> > THANKS ALL FOR THE HELP!!
> >
> > I have another related question about Vlookup.
> >
> > I'm trying to lookup a number that has a really long decimal figure:
> > eg: 2.33334444555666777
> >
> > Is there anyway I can search for it by just typing "2.3333" instead of
> > the whole long number? Thanks again!
> >
> > Nat
> >
> > Dave Peterson wrote:
> > > =vlookup(d1,a:b,2,false)
> > >
> > > Natalie wrote:
> > > >
> > > > Hi,
> > > >
> > > > Need some help:
> > > >
> > > > Let's say I have a list of numbers in column A:
> > > >
> > > > A1:1
> > > > A2:2
> > > > A3:3
> > > > An:n
> > > >
> > > > And another list of random numbers in column B:
> > > >
> > > > B1: 2.3
> > > > B2: 3.5
> > > > B3: 55.6
> > > > Bn: <some random number>
> > > >
> > > > If I enter a number in cell C1=An, how do I make cell D1 display the
> > > > corresponding B column value?
> > > >
> > > > Eg: If in C1, I enter "2", how do I make D1 show "55.6"
> > > >
> > > > Thanks!
> > >
> > > --
> > >
> > > Dave Peterson

>
> --
>
> Dave Peterson


 
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
Grouping a column of data and displaying the number of items grouped henry.fullalove@gmail.com Microsoft Excel Worksheet Functions 2 16th Apr 2008 10:16 PM
Displaying a two column combo box and showing value from column 1 but saving clolumn 2 data. esung911@aol.com Microsoft Access Forms 2 22nd Feb 2007 12:07 AM
Re: Linking to a cell and displaying the formatted number, not the stored number Gail Microsoft Excel Misc 0 17th Jul 2003 03:34 PM
Re: Linking to a cell and displaying the formatted number, not the stored number Paul Corrado Microsoft Excel Misc 0 16th Jul 2003 10:00 PM
Re: Linking to a cell and displaying the formatted number, not the stored number John Wirt Microsoft Excel Misc 0 16th Jul 2003 09:22 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 05:49 PM.