#1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 6
Default vlookup : upwards

Hi,

I have a sheet coming from another (stupid) program, with
- one line " client: name_of_the_client"
-on many lines, all the products ordered by the client


Of course, to sort this sheet, I would like a new column, with
name_of_the_client repeated in front of each corresponding product.

Can a vlookup formula put in column A the last previous cell from
column B beginning with "client" ?

From :

***********

Client: Mister Blabla
- toothbrush
- broom
-carpet
Client: Miss Blibli
- paper
- car
- plant

To:
**********

Mister Blabla | tootbrush
Mister Blabla | broom
Mister Blabla | carpet
Miss Blibli | paper
Miss Blibli | car
Miss Blibli | plant

Thanks for your help

François

  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 35,218
Default vlookup : upwards

How about an alternative.

Insert a new column A (data in B1:B###)
Put this in A1: =MID(B1,9,255)
put this in A2: =IF(LEFT(B2,7)="client:",MID(B2,9,255),A1)
Then select A2 and drag down as far as you need.
Select column A and convert to values (edit|copy, edit|paste special|values)

Then filter column B to show only begins with client:
delete those visible rows
Maybe even select column B and do
edit|replace
what: _-_ (spacebar, hyphen, spacebar)
with: (leaveblank)
replace all
to clean up those hyphens.

wrote:

Hi,

I have a sheet coming from another (stupid) program, with
- one line " client: name_of_the_client"
-on many lines, all the products ordered by the client

Of course, to sort this sheet, I would like a new column, with
name_of_the_client repeated in front of each corresponding product.

Can a vlookup formula put in column A the last previous cell from
column B beginning with "client" ?

From :

***********

Client: Mister Blabla
- toothbrush
- broom
-carpet
Client: Miss Blibli
- paper
- car
- plant

To:
**********

Mister Blabla | tootbrush
Mister Blabla | broom
Mister Blabla | carpet
Miss Blibli | paper
Miss Blibli | car
Miss Blibli | plant

Thanks for your help

François


--

Dave Peterson
  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 6
Default vlookup : upwards

Hi Dave,

Thank you very much for this very nice formula:

I just translated functions to french, and transformed commas to semi
colon, and it worked great.

Thanks a lot.

François

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
what setting needs changed, my drop down box displays upwards? Midnight Excel Worksheet Functions 0 August 30th 06 02:40 PM
Searching UPWARDS for a value? [email protected] Excel Discussion (Misc queries) 3 August 28th 06 10:45 PM
Formula to change number upwards. Olle Svensson Excel Discussion (Misc queries) 5 August 24th 06 07:56 AM
Autofill upwards!!!!! Paul Sheppard Excel Discussion (Misc queries) 4 June 1st 06 02:45 PM
Automatic Numbering Upwards Alex01 Excel Discussion (Misc queries) 2 August 17th 05 08:05 AM


All times are GMT +1. The time now is 04:57 AM.

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"