Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 7
Default Function to add 3 column (of YES) to give a total % complete

I am trying to write a formula that will allow me to add a Yes to one cell
(in 3 different columns) cell and then give a % as the answer
For example:

Cell A1 = Yes Total would be 40%
Cell A2 = Yes Combined (A1+A2) Total would be 70%
Cell A3 = Yes Combined (A1+A2+A3) Total would be 100%

Any and all help is appreciated!
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2,276
Default Function to add 3 column (of YES) to give a total % complete

Hi,
try

=IF(AND(a1="YES",a2="YES",a3="YES"),"100%",IF(AND( a1="YES",a2="YES"),"70%",IF(a1="YES","40%","")))

"preyesone" wrote:

I am trying to write a formula that will allow me to add a Yes to one cell
(in 3 different columns) cell and then give a % as the answer
For example:

Cell A1 = Yes Total would be 40%
Cell A2 = Yes Combined (A1+A2) Total would be 70%
Cell A3 = Yes Combined (A1+A2+A3) Total would be 100%

Any and all help is appreciated!

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 7
Default Function to add 3 column (of YES) to give a total % complete

Thank you... Thank you... Thank you!

"Eduardo" wrote:

Hi,
try

=IF(AND(a1="YES",a2="YES",a3="YES"),"100%",IF(AND( a1="YES",a2="YES"),"70%",IF(a1="YES","40%","")))

"preyesone" wrote:

I am trying to write a formula that will allow me to add a Yes to one cell
(in 3 different columns) cell and then give a % as the answer
For example:

Cell A1 = Yes Total would be 40%
Cell A2 = Yes Combined (A1+A2) Total would be 70%
Cell A3 = Yes Combined (A1+A2+A3) Total would be 100%

Any and all help is appreciated!

  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2,276
Default Function to add 3 column (of YES) to give a total % complete

your welcome

"preyesone" wrote:

Thank you... Thank you... Thank you!

"Eduardo" wrote:

Hi,
try

=IF(AND(a1="YES",a2="YES",a3="YES"),"100%",IF(AND( a1="YES",a2="YES"),"70%",IF(a1="YES","40%","")))

"preyesone" wrote:

I am trying to write a formula that will allow me to add a Yes to one cell
(in 3 different columns) cell and then give a % as the answer
For example:

Cell A1 = Yes Total would be 40%
Cell A2 = Yes Combined (A1+A2) Total would be 70%
Cell A3 = Yes Combined (A1+A2+A3) Total would be 100%

Any and all help is appreciated!

  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Ken Ken is offline
external usenet poster
 
Posts: 207
Default Function to add 3 column (of YES) to give a total % complete

A little different approach:

=INDEX({0;40;70;100},COUNTIF(D15:F15,"Yes")+1)

This assumes your "yeses" go in columns D, E, and F and that you want
a 0 if there are none.

Good luck

Ken
Norfolk, Va



On Jun 30, 2:37*pm, Eduardo wrote:
Hi,
try

=IF(AND(a1="YES",a2="YES",a3="YES"),"100%",IF(AND( a1="YES",a2="YES"),"70%",*IF(a1="YES","40%","")))



"preyesone" wrote:
I am trying to write a formula that will allow me to add a Yes to one cell
(in 3 different columns) cell and then give a % as the answer
For example:


Cell A1 = Yes *Total would be 40%
Cell A2 = Yes *Combined (A1+A2) Total would be 70%
Cell A3 = Yes *Combined (A1+A2+A3) Total would be 100%


Any and all help is appreciated!- Hide quoted text -


- Show quoted text -




  #6   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3,718
Default Function to add 3 column (of YES) to give a total % complete

=(A1="yes")*0.4+((A2="yes")+(A3="yes"))*0.3


"preyesone" wrote:

I am trying to write a formula that will allow me to add a Yes to one cell
(in 3 different columns) cell and then give a % as the answer
For example:

Cell A1 = Yes Total would be 40%
Cell A2 = Yes Combined (A1+A2) Total would be 70%
Cell A3 = Yes Combined (A1+A2+A3) Total would be 100%

Any and all help is appreciated!

  #7   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3,718
Default Function to add 3 column (of YES) to give a total % complete

This one slightly shorter.

=(A1="yes")*0.4+COUNTIF(A2:A3,"yes")*0.3



"preyesone" wrote:

I am trying to write a formula that will allow me to add a Yes to one cell
(in 3 different columns) cell and then give a % as the answer
For example:

Cell A1 = Yes Total would be 40%
Cell A2 = Yes Combined (A1+A2) Total would be 70%
Cell A3 = Yes Combined (A1+A2+A3) Total would be 100%

Any and all help is appreciated!

  #8   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3,346
Default Function to add 3 column (of YES) to give a total % complete

Hi,

here are two short approaches

Array enter
=SUM((A1:A3="yes")*{0.4;0.3;0.3})

to array enter this press Shift+Ctr+Enter

or create a range contain 40% 30% and 30%, in the example below B1:B3

=SUMIF(A1:A3,"yes",B1:B3)

--
If this helps, please click the Yes button.

Cheers,
Shane Devenshire


"preyesone" wrote:

I am trying to write a formula that will allow me to add a Yes to one cell
(in 3 different columns) cell and then give a % as the answer
For example:

Cell A1 = Yes Total would be 40%
Cell A2 = Yes Combined (A1+A2) Total would be 70%
Cell A3 = Yes Combined (A1+A2+A3) Total would be 100%

Any and all help is appreciated!

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
If the total = between 17-20 give it a score of 5, and so on Heather Excel Discussion (Misc queries) 3 May 25th 07 09:59 PM
want a formula give total quanitity break up frm other sheet Aristotle Excel Worksheet Functions 1 June 23rd 06 09:01 AM
Variance Total for less than complete year? Enzo Excel Discussion (Misc queries) 1 September 1st 05 09:33 AM
How do I total a column which was created using the MID function? CindyB Excel Worksheet Functions 6 February 10th 05 05:37 AM
calculate which cells in column A will give me the total of column Ken Excel Worksheet Functions 4 January 6th 05 06:25 AM


All times are GMT +1. The time now is 12:10 PM.

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"