Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 10
Default VLOOKUP Value that is Repeated

Hi I am so struggling today. I am doing a Vlookup on sheet 1 cell A1 which
contains the word "Hospital". On sheet2 I have a column with all of our
companies' jobs in column A. The problem I am running into is that we will
submit information several times on the Hospital job. So none of the entries
are complete but together between all 5 or 10 entries if you combine them you
get a complete entry. Is there a way to do a lookup and if the value in
sheet2 cell B1 is blank have it look for the next entry and if that one is
blank continue until it finds a value? Thanks in advance for your help!!!
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1,388
Default VLOOKUP Value that is Repeated

Hi,
I think you say that of the multiple "Hospital" entries in Column A, only
one of them will have an entry in Column B.
If this is so, try:
=SUMPRODUCT(--(A3:A100=A1),(B3:B100))
You would have to insert the name of the other sheet (eg 'Sheet(1)!'A3:A100)
Regards - Dave
  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 15,768
Default VLOOKUP Value that is Repeated

Is the value to be returned text or numeric?

--
Biff
Microsoft Excel MVP


"Dave" wrote in message
...
Hi,
I think you say that of the multiple "Hospital" entries in Column A, only
one of them will have an entry in Column B.
If this is so, try:
=SUMPRODUCT(--(A3:A100=A1),(B3:B100))
You would have to insert the name of the other sheet (eg
'Sheet(1)!'A3:A100)
Regards - Dave



  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 10
Default VLOOKUP Value that is Repeated

Depends on the Column. Some are numeric some are Text. Like address, phone
number, names.....

"T. Valko" wrote:

Is the value to be returned text or numeric?

--
Biff
Microsoft Excel MVP


"Dave" wrote in message
...
Hi,
I think you say that of the multiple "Hospital" entries in Column A, only
one of them will have an entry in Column B.
If this is so, try:
=SUMPRODUCT(--(A3:A100=A1),(B3:B100))
You would have to insert the name of the other sheet (eg
'Sheet(1)!'A3:A100)
Regards - Dave




  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 15,768
Default VLOOKUP Value that is Repeated

Try this...

Returns the first non-blank cell that corresponds to the lookup value:

=INDEX(Sheet2!B1:B10,MATCH(1,INDEX((Sheet2!A1:A10= A1)*(Sheet2!B1:B10<""),,1),0))

--
Biff
Microsoft Excel MVP


"Thomas Price" wrote in message
...
Depends on the Column. Some are numeric some are Text. Like address,
phone
number, names.....

"T. Valko" wrote:

Is the value to be returned text or numeric?

--
Biff
Microsoft Excel MVP


"Dave" wrote in message
...
Hi,
I think you say that of the multiple "Hospital" entries in Column A,
only
one of them will have an entry in Column B.
If this is so, try:
=SUMPRODUCT(--(A3:A100=A1),(B3:B100))
You would have to insert the name of the other sheet (eg
'Sheet(1)!'A3:A100)
Regards - Dave








  #6   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 10
Default VLOOKUP Value that is Repeated

Does this only work with Numeric answers? The answers are both.

"Dave" wrote:

Hi,
I think you say that of the multiple "Hospital" entries in Column A, only
one of them will have an entry in Column B.
If this is so, try:
=SUMPRODUCT(--(A3:A100=A1),(B3:B100))
You would have to insert the name of the other sheet (eg 'Sheet(1)!'A3:A100)
Regards - Dave

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
maximum repeated value markag Excel Worksheet Functions 2 June 16th 06 08:56 PM
Printing text in a repeated cell/row that is longer than repeated Valerie Dyet Excel Discussion (Misc queries) 1 February 13th 06 03:27 AM
Repeated values in a row reynold Excel Discussion (Misc queries) 1 December 30th 05 01:08 PM
max number repeated Pivotrend Excel Discussion (Misc queries) 5 December 23rd 05 02:48 PM
Repeated row carlo Excel Discussion (Misc queries) 2 December 3rd 04 10:47 AM


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

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"