I need to enumerate the cells in a column with consecutive numbers, that is: 1,2,3, etc. The range involves blank cells. In short, when "g1" is active, "e1" equals "1"; when "g2" is active,
"e2" equals "2"; and so on; then when column "g" happens to be inactive, column "e" becomes empty. So forth so good.
Up to this stage this is my formula:
=if(g54>"",sum(e53+1),"")
i didn't realized that i was going to get empty cells. So my formula has limitations. Thus i need a formula that enumerates the cells in column "e" depending on the status of column "g" in such a way that when a cell in column "g" happens to be inactive, and consequently column "e" becomes empty, the formula reads and sums the value in the last active cell in column "e" to the cell right after the same empty cell in column "e" so the serie follows a logical secuence.
Any help will be greatly appreciated.
Last edited by CESAR V. ARROYO; 07-19-2009 at 04:59 PM.
In E1:
=IF(G1 = "", "", 1)
In E2 and then copied down:
=IF(G2 = "", "", MAX($E$1:$E1)+1)
_________________
Microsoft MVP 2010 - Excel
Visit: Jerry Beaucaire's Excel Files & Macros
If you've been given good help, use theicon below to give reputation feedback, it is appreciated.
Always put your code between code tags. [CODE] your code here [/CODE]
“None of us is as good as all of us” - Ray Kroc
“Actually, I *am* a rocket scientist.” - JB (little ones count!)
Try pasting this formula into E1 and copy down.
=IF(G1="","",COUNTA(G$1:G1))
Martin
Eighty Twenty Spreadsheet Automation http://homepage.ntlworld.com/martin.rice1/ for all your Excel customisation and consulting needs.
If my solution has saved you time and/or money, please consider donating to Cancer Research UK.
If that takes care of your need, be sure to EDIT your original post, click Go Advanced and mark the PREFIX box [SOLVED].
(Also, use the blue "scales" icon in our posts to leave Reputation Feedback, it is appreciated)
_________________
Microsoft MVP 2010 - Excel
Visit: Jerry Beaucaire's Excel Files & Macros
If you've been given good help, use theicon below to give reputation feedback, it is appreciated.
Always put your code between code tags. [CODE] your code here [/CODE]
“None of us is as good as all of us” - Ray Kroc
“Actually, I *am* a rocket scientist.” - JB (little ones count!)
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks