Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
Jon Jon is offline
external usenet poster
 
Posts: 183
Default How account duplicated number if condition is met?

I have 3 columns as follows:
A B C
100 100 a
200 350 a
100 100 a
220 500 c
100 250 a

C10 = 210
What I want is how to find the number of 100s & the letters in column C if
a1+b2<c10.
In my example the result is
Number of duplicated = 2
The duplicated letter is: A
How to do that please??

  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 857
Default How account duplicated number if condition is met?

Hi,

=SUMPRODUCT(--((A1:A5+B1:B5)<C10))

calculates the number of rows that meet the condition. The following array
formula return the letter in column c

=INDEX(C1:C5,MAX(((A1:A5+B1:B5)<C10)*ROW(A1:A5)))

to make it an array you enter it by pressing Shift+Ctrl+Enter.

Note that this does not deal with what happens if the two rows have
different letters. This just return one of those letter.



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

Cheers,
Shane Devenshire


"Jon" wrote:

I have 3 columns as follows:
A B C
100 100 a
200 350 a
100 100 a
220 500 c
100 250 a

C10 = 210
What I want is how to find the number of 100s & the letters in column C if
a1+b2<c10.
In my example the result is
Number of duplicated = 2
The duplicated letter is: A
How to do that please??

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
How do I make a chart take into account a varying number of rows? Leo Charts and Charting in Excel 1 June 19th 08 01:44 PM
Removing items from worksheet by account number question LiveUser New Users to Excel 3 November 10th 07 01:31 PM
how to account the number of cells which is bank and written? jack Excel Discussion (Misc queries) 1 May 8th 07 05:22 PM
I want to put a bank account number that begins with 00 in Excel. Kbrookfi Excel Worksheet Functions 1 March 9th 06 05:32 AM
Help with function to sum values in a worksheet depending on account number Dab Excel Worksheet Functions 4 June 7th 05 10:08 PM


All times are GMT +1. The time now is 06:10 AM.

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"