Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 5
Default Query regarding any lookup function

I just want to know if any lookup value is repeating in range,which
function we should use at that time.
For ex

A B C
Name Value
a 2623
b 2561
c 12546
d 4563
a 452
c 223321
d 321

With above example i want to know how can we find each value for a in
lookup range A:A.
if is there any another nested function,please let me know

Regards
Ram
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 36
Default Query regarding any lookup function

On May 1, 3:27*am, Ram wrote:
I just want to know if any lookup value is repeating in range,which
function we should use at that time.
For ex

A * * * * * * * * * * * * * * B * * * * * * * * * * * * * * * * C
Name * * * * * * * * * * *Value
a * * * * * * * * * * * * * * *2623
b * * * * * * * * * * * * * * 2561
c * * * * * * * * * * * * * * 12546
d * * * * * * * * * * * * * * 4563
a * * * * * * * * * * * * * * *452
c * * * * * * * * * * * * * * *223321
d * * * * * * * * * * * * * * *321

With above example i want to know how can we *find each value for a in
lookup range A:A.
if is there any another nested function,please let me know

Regards
Ram


If you want to sum look in the help index for SUMIF. To count look for
COUNTIF
  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 5
Default Query regarding any lookup function

On May 2, 1:14*am, Donald Guillett wrote:
On May 1, 3:27*am, Ram wrote:





I just want to know if any lookup value is repeating in range,which
function we should use at that time.
For ex


A * * * * * * * * * * * * * * B * * * * * * * * * * * * * * * * C
Name * * * * * * * * * * *Value
a * * * * * * * * * * * * * * *2623
b * * * * * * * * * * * * * * 2561
c * * * * * * * * * * * * * * 12546
d * * * * * * * * * * * * * * 4563
a * * * * * * * * * * * * * * *452
c * * * * * * * * * * * * * * *223321
d * * * * * * * * * * * * * * *321


With above example i want to know how can we *find each value for a in
lookup range A:A.
if is there any another nested function,please let me know


Regards
Ram


If you want to sum look in the help index for SUMIF. To count look for
COUNTIF- Hide quoted text -

- Show quoted text -


Hi,
I want to lookup the value for perticular name.For example if we use
vlookup for "a", as =vlookup(A3,A1:B7,2,0) then it will return 2623
for first occurence of "a" but i want to the value for second or third
occurence for a orb as 452 etc
  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 621
Default Query regarding any lookup function

Where do you want the results placed?

Some code by Don Guillet to return results to one cell..........C1

Option Explicit
Sub SAS_filternumbersfornames()
Dim mv As String
Dim mc As Long
Dim i As Long
Dim ms As String
mv = "a" 'value to lookup
mc = 1 'col A
For i = 2 To Cells(Rows.Count, mc).End(xlUp).Row
If Cells(i, mc) = mv Then ms = ms & Cells(i, mc + 1) & Chr(10)
Next i
MsgBox ms
Cells(1, mc + 2) = ms
End Sub


Gord Dibben MS Excel MVP

On Mon, 2 May 2011 08:09:58 -0700 (PDT), Ram wrote:

Hi,
I want to lookup the value for perticular name.For example if we use
vlookup for "a", as =vlookup(A3,A1:B7,2,0) then it will return 2623
for first occurence of "a" but i want to the value for second or third
occurence for a orb as 452 etc

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
auto lookup query He cries for help[_2_] New Users to Excel 1 January 23rd 08 06:15 PM
Lookup query StephenAccountant Excel Worksheet Functions 3 December 10th 07 04:54 AM
Lookup query Jax Excel Discussion (Misc queries) 4 October 29th 07 09:59 PM
Lookup query in excel LM Excel Worksheet Functions 2 May 29th 06 04:31 PM
Microsoft Query rejects "nz" function in Access Query Vaughan Excel Discussion (Misc queries) 0 May 4th 05 05:20 PM


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