Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 19
Default Excel Formula

Hello,

I have a large list of customer data that I would like to sort, but each
line does not contain a customer name, which is the field I want to sort by.
The spreadsheet shows a customer name on one line and then the various
invoices below it.

I am trying to write a formula that can do the following:

Move two cells to the right, and then return the first cell above this cell
that contains a name (the customer name). The data looks like this:

Customer ABC (2 cells to the right of the
Formula)
Blank cell Invoice # 1
Blank cell Invoice #2

In other words, the formula would be in the far left cell (now the blank
cell) and move 2 cells to the right and then return the "Customer ABC" cell.
But, I need a formula that I can copy down many rows of invoices that will
all return the same customer name.

I hope I have explained this well enough. Any help is much appreciated.

John M


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 10,593
Default Excel Formula

In A1 add this array formula and copy down

=IF(C1<"",C1,INDEX($C$1:C1,MAX(IF($C$1:C1<"",ROW ($C$1:C1)))))

as an array formula, commit with Ctrl-Shift-Enter, not just Enter.

--
HTH

Bob

(there's no email, no snail mail, but somewhere should be gmail in my addy)

"John M" wrote in message
...
Hello,

I have a large list of customer data that I would like to sort, but each
line does not contain a customer name, which is the field I want to sort
by.
The spreadsheet shows a customer name on one line and then the various
invoices below it.

I am trying to write a formula that can do the following:

Move two cells to the right, and then return the first cell above this
cell
that contains a name (the customer name). The data looks like this:

Customer ABC (2 cells to the right of the
Formula)
Blank cell Invoice # 1
Blank cell Invoice #2

In other words, the formula would be in the far left cell (now the blank
cell) and move 2 cells to the right and then return the "Customer ABC"
cell.
But, I need a formula that I can copy down many rows of invoices that will
all return the same customer name.

I hope I have explained this well enough. Any help is much appreciated.

John M




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
Excel formula to copy/paste formula needed please. colwyn Excel Discussion (Misc queries) 4 October 22nd 08 11:27 PM
Excel 2002 Formula: Urgent Conditional Formula Required Right Away - if possible blue[_2_] Excel Discussion (Misc queries) 2 July 11th 07 06:08 PM
Build excel formula using field values as text in the formula val kilbane Excel Worksheet Functions 2 April 18th 07 01:52 PM
Excel 2002 formula displayed not value formula option not checked Dean Excel Worksheet Functions 1 February 28th 06 02:31 PM
How do I view formula results intead of formula in excel? davidinatlanta Excel Worksheet Functions 4 February 7th 06 03:02 PM


All times are GMT +1. The time now is 07:47 PM.

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"