#1   Report Post  
Michelle
 
Posts: n/a
Default Excel formula

I am looking for a formula that will give me an increasing number in a cell
if there is a value (words) in a corresponding cell, and a blank if there is
nothing in the cell. Any ideas?
--
Michelle
  #2   Report Post  
Rowan
 
Posts: n/a
Default

Hi Michelle

With your data in Column A starting in Row 2. In B2 enter:

=IF(A2="","",SUMPRODUCT(--($A$2:A2<"")))

and copy down to end of data.

Does this help?

Regards
Rowan

"Michelle" wrote:

I am looking for a formula that will give me an increasing number in a cell
if there is a value (words) in a corresponding cell, and a blank if there is
nothing in the cell. Any ideas?
--
Michelle

  #3   Report Post  
Michelle
 
Posts: n/a
Default

Thank you - that works perfectly, although I don't understand how the
SUMFUNCTION part of it works.
--
Michelle


"Rowan" wrote:

Hi Michelle

With your data in Column A starting in Row 2. In B2 enter:

=IF(A2="","",SUMPRODUCT(--($A$2:A2<"")))

and copy down to end of data.

Does this help?

Regards
Rowan

"Michelle" wrote:

I am looking for a formula that will give me an increasing number in a cell
if there is a value (words) in a corresponding cell, and a blank if there is
nothing in the cell. Any ideas?
--
Michelle

  #4   Report Post  
Aladin Akyurek
 
Posts: n/a
Default

Let B3:B7 house

dfa
wqa
=""

xsa

where B5 is "", resulting from a formula and B6 empty.

In A1 enter a 0.

In A2:B2 enter the appropriate headers.

In A3 enter & copy down:

=IF(B3<"",LOOKUP(9.99999999999999E+307,$A$1:A2)+1 ,"")

Note that a formula-blank is treated in the same way as an empty cell.

Michelle wrote:
I am looking for a formula that will give me an increasing number in a cell
if there is a value (words) in a corresponding cell, and a blank if there is
nothing in the cell. Any ideas?

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
Why does Excel show a formula in ONE cell ? edpaul Excel Discussion (Misc queries) 1 August 12th 05 07:29 PM
Excel CHALLENGE...3 questions(indirect,rank,array formula)... Mlowry Excel Worksheet Functions 8 August 1st 05 07:34 AM
converting formula from lotus.123 to excel zaharah Excel Worksheet Functions 2 July 27th 05 03:04 PM
How do I get the formula bar in excel 2003 unionhall Excel Discussion (Misc queries) 1 February 17th 05 10:10 AM
Suddenly Excel can't calculate formula!!! Bob H Excel Worksheet Functions 2 November 30th 04 08:35 PM


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