Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
Aaron Saulisberry
 
Posts: n/a
Default Compare cell = one result

What I'd like to to is the following.

I have many rows, some with data in column A and some with data in column B.
I'd like to do is if there is data in BOTH column A AND B for the same row to
toltal those figures for the entire sheet.

I'm not sure how to write the formula to validate that there is both data in
column A AND column B. Any help is appreciated
  #2   Report Post  
Posted to microsoft.public.excel.misc
Vito
 
Posts: n/a
Default Compare cell = one result


This formula multiplies each column A by respective column B and
cumulatively sums those products only for the rows containing values in
Column A and B.

=SUMPRODUCT(--(A1:A3<""),--(B1:B3<""),A1:A3,B1:B3)

Adjust ranges to suit.


--
Vito
------------------------------------------------------------------------
Vito's Profile: http://www.excelforum.com/member.php...o&userid=29182
View this thread: http://www.excelforum.com/showthread...hreadid=503884

  #3   Report Post  
Posted to microsoft.public.excel.misc
Tom Ogilvy
 
Posts: n/a
Default Compare cell = one result

=sumproduct(--(A1:A500<""),--(B1:B500<""),(A1:A500)+(B1:B500))

--
Regards,
Tom Ogilvy


"Aaron Saulisberry" wrote in
message ...
What I'd like to to is the following.

I have many rows, some with data in column A and some with data in column

B.
I'd like to do is if there is data in BOTH column A AND B for the same row

to
toltal those figures for the entire sheet.

I'm not sure how to write the formula to validate that there is both data

in
column A AND column B. Any help is appreciated



  #4   Report Post  
Posted to microsoft.public.excel.misc
Govind
 
Posts: n/a
Default Compare cell = one result

Hi,

You can add another column say C and enter this formula there

=IF(AND(A1<"",B1<""),A1+B1,0)

This formula would sumup column A and B, only when they both are not blank.

Then you can sumup column C and find out the total.

Regards

Govind.

Aaron Saulisberry wrote:

What I'd like to to is the following.

I have many rows, some with data in column A and some with data in column B.
I'd like to do is if there is data in BOTH column A AND B for the same row to
toltal those figures for the entire sheet.

I'm not sure how to write the formula to validate that there is both data in
column A AND column B. Any help is appreciated

  #5   Report Post  
Posted to microsoft.public.excel.misc
Biff
 
Posts: n/a
Default Compare cell = one result

Hi!

Try this:

=SUMPRODUCT((A1:A10<"")*(B1:B10<"")*A1:B10)

Biff

"Aaron Saulisberry" wrote in
message ...
What I'd like to to is the following.

I have many rows, some with data in column A and some with data in column
B.
I'd like to do is if there is data in BOTH column A AND B for the same row
to
toltal those figures for the entire sheet.

I'm not sure how to write the formula to validate that there is both data
in
column A AND column B. Any help is appreciated





  #6   Report Post  
Posted to microsoft.public.excel.misc
Aaron Saulisberry
 
Posts: n/a
Default Compare cell = one result

Thanks for the quick respone.... it works!

"Biff" wrote:

Hi!

Try this:

=SUMPRODUCT((A1:A10<"")*(B1:B10<"")*A1:B10)

Biff

"Aaron Saulisberry" wrote in
message ...
What I'd like to to is the following.

I have many rows, some with data in column A and some with data in column
B.
I'd like to do is if there is data in BOTH column A AND B for the same row
to
toltal those figures for the entire sheet.

I'm not sure how to write the formula to validate that there is both data
in
column A AND column B. Any help is appreciated




  #7   Report Post  
Posted to microsoft.public.excel.misc
Aaron Saulisberry
 
Posts: n/a
Default Compare cell = one result

Well I hit the reply button to soon...

The formula does work but it returns the count of how many matches there are
rather than the total value of the columns that match. As always, help is
greatly appreciated.

"Biff" wrote:

Hi!

Try this:

=SUMPRODUCT((A1:A10<"")*(B1:B10<"")*A1:B10)

Biff

"Aaron Saulisberry" wrote in
message ...
What I'd like to to is the following.

I have many rows, some with data in column A and some with data in column
B.
I'd like to do is if there is data in BOTH column A AND B for the same row
to
toltal those figures for the entire sheet.

I'm not sure how to write the formula to validate that there is both data
in
column A AND column B. Any help is appreciated




  #8   Report Post  
Posted to microsoft.public.excel.misc
Biff
 
Posts: n/a
Default Compare cell = one result

Which formula did you use?

Post the exact formula you tried.

Biff

"Aaron Saulisberry" wrote in
message ...
Well I hit the reply button to soon...

The formula does work but it returns the count of how many matches there
are
rather than the total value of the columns that match. As always, help is
greatly appreciated.

"Biff" wrote:

Hi!

Try this:

=SUMPRODUCT((A1:A10<"")*(B1:B10<"")*A1:B10)

Biff

"Aaron Saulisberry" wrote in
message ...
What I'd like to to is the following.

I have many rows, some with data in column A and some with data in
column
B.
I'd like to do is if there is data in BOTH column A AND B for the same
row
to
toltal those figures for the entire sheet.

I'm not sure how to write the formula to validate that there is both
data
in
column A AND column B. Any 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
convert numbers to text bellman Excel Discussion (Misc queries) 0 October 4th 05 10:28 PM
Possible Lookup Table Karen Excel Worksheet Functions 5 June 8th 05 09:43 PM
Copy cell format to cell on another worksht and update automatical kevinm Excel Worksheet Functions 21 May 19th 05 11:07 AM
Function syntax to compare cell contents ES Excel Worksheet Functions 2 May 18th 05 03:53 PM
GET.CELL Biff Excel Worksheet Functions 2 November 24th 04 07:16 PM


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