Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 740
Default conditional formula

hello again,

i have two reference columns A & B
column A contains text, column B contains numbers

i also have another two columns C & D
column C contains text, column D contains the sum formula i am looking for.

C look-up for A, only for the 2 digit prefix.

while D sums up for B

e.g
A B C D
12 5 12 21
12A 10 13 54
12B 5
12C 1
13 6
13.01 3
13.02 45

If theres a formula available for Column D, please share.

--
regards,

  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 8,856
Default conditional formula

Try this in D1:

=SUMPRODUCT((LEFT(A$1:A$7,2)=C1&"")*(B$1:B$7))

Copy into D2.

Hope this helps.

Pete

On May 19, 9:11*am, driller wrote:
hello again,

i have two reference columns A & B
column A contains text, column B contains numbers

i also have another two columns C & D
column C contains text, column D contains the sum formula i am looking for..

C look-up for A, only for the 2 digit prefix.

while D sums up for B

e.g
A * * * B * * * C * * * D
12 * * *5 * * * 12 * * *21
12A * * 10 * * *13 * * *54
12B * * 5 * * * * * * *
12C * * 1 * * * * * * *
13 * * *6 * * * * * * *
13.01 * 3 * * * * * * *
13.02 * 45 * * * * * * *

If theres a formula available for Column D, please share.

--
regards,


  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 740
Default conditional formula

thanks for your reliable formula.
--
regards,



"Pete_UK" wrote:

Try this in D1:

=SUMPRODUCT((LEFT(A$1:A$7,2)=C1&"")*(B$1:B$7))

Copy into D2.

Hope this helps.

Pete

On May 19, 9:11 am, driller wrote:
hello again,

i have two reference columns A & B
column A contains text, column B contains numbers

i also have another two columns C & D
column C contains text, column D contains the sum formula i am looking for..

C look-up for A, only for the 2 digit prefix.

while D sums up for B

e.g
A B C D
12 5 12 21
12A 10 13 54
12B 5
12C 1
13 6
13.01 3
13.02 45

If theres a formula available for Column D, please share.

--
regards,



  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 10,593
Default conditional formula

Another way

=SUMIF(A1:A7,"12*",B1:B7)+SUMIF(A1:A7,12,B1:B7)

--
---
HTH

Bob


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



"driller" wrote in message
...
hello again,

i have two reference columns A & B
column A contains text, column B contains numbers

i also have another two columns C & D
column C contains text, column D contains the sum formula i am looking
for.

C look-up for A, only for the 2 digit prefix.

while D sums up for B

e.g
A B C D
12 5 12 21
12A 10 13 54
12B 5
12C 1
13 6
13.01 3
13.02 45

If theres a formula available for Column D, please share.

--
regards,



  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 740
Default conditional formula

thanks for the another way. Pete's formula works already.
--
regards,



"Bob Phillips" wrote:

Another way

=SUMIF(A1:A7,"12*",B1:B7)+SUMIF(A1:A7,12,B1:B7)

--
---
HTH

Bob


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



"driller" wrote in message
...
hello again,

i have two reference columns A & B
column A contains text, column B contains numbers

i also have another two columns C & D
column C contains text, column D contains the sum formula i am looking
for.

C look-up for A, only for the 2 digit prefix.

while D sums up for B

e.g
A B C D
12 5 12 21
12A 10 13 54
12B 5
12C 1
13 6
13.01 3
13.02 45

If theres a formula available for Column D, please share.

--
regards,






  #6   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 8,856
Default conditional formula

You're welcome - thanks for feeding back.

Pete

On May 19, 9:47*am, driller wrote:
thanks for your reliable formula.
--
regards,

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
Excel 2002 Formula: Urgent Conditional Formula Required Right Away - if possible blue[_2_] Excel Discussion (Misc queries) 2 July 11th 07 06:08 PM
Formula, Conditional Formula Needed Karl Excel Discussion (Misc queries) 12 June 23rd 07 04:12 AM
CONDITIONAL FORMULA SSJ New Users to Excel 7 November 15th 06 06:03 PM
Conditional Formula rdaled Excel Discussion (Misc queries) 2 August 16th 06 05:23 PM
Conditional Formula to indicate Formula in cell SteveW New Users to Excel 9 August 2nd 06 01:12 AM


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