Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
D D is offline
external usenet poster
 
Posts: 121
Default Automatically Extend Formula in Count function with Additional Row

I am creating a form in excel about complaint resolution. It is a protected
sheet and only some cells are unlocked to edit. Users will also be able to
add/delete rows. One column asks the user whether or not the complaint was
resolved. A drop down list allows them to choose yes or no. The last row of
the sheet will calculate what percentage of complaints were resolved. An
example is below:

A
1 Yes
2 No
3 Yes
4 Yes
5 No
6 =countif(A1:A5,"Yes")/counta(A1:A5)

If a 6th complaint comes in, I want the user to be able to add another row
and have the total formula (now in A7) extend to read
=countif(A1:A6,"Yes")/counta(A1:A6). The user will not be able to update this
manually as the total column will be locked.

I have read the help topic "Extend formats and fomulas to additional rows"
and I have checked to ensure that the 'Extend data range format and formulas'
box is selected under ToolsOptionsEdit.

If anyone has any other suggestions I would be pleased to try them.

Thanks,
D
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 10,593
Default Automatically Extend Formula in Count function with Additional Row

=COUNTIF(OFFSET(A1,,,ROW()-1,1),"Yes")/COUNTA(OFFSET(A1,,,ROW()-1,1))

--
HTH

Bob

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

"D" wrote in message
...
I am creating a form in excel about complaint resolution. It is a protected
sheet and only some cells are unlocked to edit. Users will also be able to
add/delete rows. One column asks the user whether or not the complaint was
resolved. A drop down list allows them to choose yes or no. The last row
of
the sheet will calculate what percentage of complaints were resolved. An
example is below:

A
1 Yes
2 No
3 Yes
4 Yes
5 No
6 =countif(A1:A5,"Yes")/counta(A1:A5)

If a 6th complaint comes in, I want the user to be able to add another row
and have the total formula (now in A7) extend to read
=countif(A1:A6,"Yes")/counta(A1:A6). The user will not be able to update
this
manually as the total column will be locked.

I have read the help topic "Extend formats and fomulas to additional rows"
and I have checked to ensure that the 'Extend data range format and
formulas'
box is selected under ToolsOptionsEdit.

If anyone has any other suggestions I would be pleased to try them.

Thanks,
D



  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 35,218
Default Automatically Extend Formula in Count function with Additional Row

I'd put this total in row 1 (and headers in row 2???), then I could make that
range as big as I wanted:

=countif(a3:a65536,"yes")/counta(a3:a65536)

But you could also use a formula like this in A6:
=COUNTIF(A1:OFFSET(A6,-1,0),"Yes")/COUNTA(A1:OFFSET(A6,-1,0))



D wrote:

I am creating a form in excel about complaint resolution. It is a protected
sheet and only some cells are unlocked to edit. Users will also be able to
add/delete rows. One column asks the user whether or not the complaint was
resolved. A drop down list allows them to choose yes or no. The last row of
the sheet will calculate what percentage of complaints were resolved. An
example is below:

A
1 Yes
2 No
3 Yes
4 Yes
5 No
6 =countif(A1:A5,"Yes")/counta(A1:A5)

If a 6th complaint comes in, I want the user to be able to add another row
and have the total formula (now in A7) extend to read
=countif(A1:A6,"Yes")/counta(A1:A6). The user will not be able to update this
manually as the total column will be locked.

I have read the help topic "Extend formats and fomulas to additional rows"
and I have checked to ensure that the 'Extend data range format and formulas'
box is selected under ToolsOptionsEdit.

If anyone has any other suggestions I would be pleased to try them.

Thanks,
D


--

Dave Peterson
  #4   Report Post  
Posted to microsoft.public.excel.misc
D D is offline
external usenet poster
 
Posts: 121
Default Automatically Extend Formula in Count function with Additional

Thanks, this worked!

"Dave Peterson" wrote:

I'd put this total in row 1 (and headers in row 2???), then I could make that
range as big as I wanted:

=countif(a3:a65536,"yes")/counta(a3:a65536)

But you could also use a formula like this in A6:
=COUNTIF(A1:OFFSET(A6,-1,0),"Yes")/COUNTA(A1:OFFSET(A6,-1,0))



D wrote:

I am creating a form in excel about complaint resolution. It is a protected
sheet and only some cells are unlocked to edit. Users will also be able to
add/delete rows. One column asks the user whether or not the complaint was
resolved. A drop down list allows them to choose yes or no. The last row of
the sheet will calculate what percentage of complaints were resolved. An
example is below:

A
1 Yes
2 No
3 Yes
4 Yes
5 No
6 =countif(A1:A5,"Yes")/counta(A1:A5)

If a 6th complaint comes in, I want the user to be able to add another row
and have the total formula (now in A7) extend to read
=countif(A1:A6,"Yes")/counta(A1:A6). The user will not be able to update this
manually as the total column will be locked.

I have read the help topic "Extend formats and fomulas to additional rows"
and I have checked to ensure that the 'Extend data range format and formulas'
box is selected under ToolsOptionsEdit.

If anyone has any other suggestions I would be pleased to try them.

Thanks,
D


--

Dave Peterson

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
extend graph axis automatically in excel Alv_C Charts and Charting in Excel 1 October 13th 06 03:16 AM
How to Extend Range Automatically myeaddress2003 Excel Worksheet Functions 2 July 14th 06 11:40 AM
cell ref in function formula change when inserting additional colu STAR263 Excel Worksheet Functions 1 May 18th 06 11:04 PM
how to extend data to next sheet automatically during sql query Asha Excel Discussion (Misc queries) 1 October 13th 05 06:26 PM
Excel should not automatically extend series or fill values whisperlm Excel Discussion (Misc queries) 0 July 13th 05 07:06 PM


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