#1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 14
Default Sum of Columns

I have 2 columns, the answer for both columns is yes or no. I want a 3rd
column to sum both of these columns according to the answer. The value for
column A is $100.00, the value for column B is $50.00, so if both columns are
€œYes€ the sum is $150.00, if just column A is €œYes€, the sum is $100.00, if
just column B is €œYes€, the sum is $50.00. Is that possible or should I take
another path?

Thanks

--
NotGood@All
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 10
Default Sum of Columns

Hello there.

Yes, this is very possible.

I'm sure someone else here can create sum super formula for you for
this, but me, I'd approach it this way...


1) Break down your work into "bits", that is, one piece at a time.
Somewhere off your viewable sheet range or outside of your print
range, setup two columns, one named 100 Mod and the other named 50 Mod
and both side by side.

2) Using this example below;

Column A Column B Column C Column X Column Y
Yes No =sum(X3:Y3) =if(A3="Yes",100,0)
=if(B3="Yes",50,0)

You can easily manage what you are trying to do when the problem is
not as "large" as it has to be.

Hope that helps!

-Imonit



On Jun 6, 3:36*pm, NotGood@All
wrote:
I have 2 columns, the answer for both columns is yes or no. *I want a 3rd
column to sum both of these columns according to the answer. *The value for
column A is $100.00, the value for column B is $50.00, so if both columns are
“Yes” the sum is $150.00, if just column A is “Yes”, the sum is $100.00, if
just column B is “Yes”, the sum is $50.00. *Is that possible or should I take
another path?

Thanks

--
NotGood@All


  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1
Default Sum of Columns

Assuming your data starts in Row 1, try this formula...

=100*(A1="Yes")+50*(B1="Yes")

Rick


"NotGood@All" wrote in message
...
I have 2 columns, the answer for both columns is yes or no. I want a 3rd
column to sum both of these columns according to the answer. The value
for
column A is $100.00, the value for column B is $50.00, so if both columns
are
€œYes€ the sum is $150.00, if just column A is €œYes€, the sum is $100.00,
if
just column B is €œYes€, the sum is $50.00. Is that possible or should I
take
another path?

Thanks

--
NotGood@All


  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 15,768
Default Sum of Columns

Try this:

=(A2="Yes")*100+(B2="Yes")*50

--
Biff
Microsoft Excel MVP


"NotGood@All" wrote in message
...
I have 2 columns, the answer for both columns is yes or no. I want a 3rd
column to sum both of these columns according to the answer. The value
for
column A is $100.00, the value for column B is $50.00, so if both columns
are
"Yes" the sum is $150.00, if just column A is "Yes", the sum is $100.00,
if
just column B is "Yes", the sum is $50.00. Is that possible or should I
take
another path?

Thanks

--
NotGood@All



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
putting 2 long columns into multiple columns in excel page and sor bob_mhc Excel Discussion (Misc queries) 1 April 25th 08 07:51 AM
to convert columns to rows having mulit independent group columns Quacy Excel Worksheet Functions 1 August 22nd 06 11:20 PM
Combine multiple columns into two long columns, Repeating rows in first column [email protected] Excel Discussion (Misc queries) 2 July 31st 06 09:45 PM
Combine multiple columns into two long columns, Repeating rows in first column [email protected] Excel Discussion (Misc queries) 0 July 31st 06 05:07 PM
Pivot Table Creating New Columns that Subtract Two Existing Columns den4673 Excel Discussion (Misc queries) 3 December 17th 04 01:31 PM


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