Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2
Default Need Help on formal - output a sum

Hello All,

I need help, I have 2 columns, all the first digits in Hex/Code column
(0,1,2) and (6,7,8) then calculate the sum of the size, for example, in A2,
A3, A4 and A8 has first digit of (0,1,2) then we calculate the sum of size
B2,B3,B4 and B8 is 170

Also for (6,7,8) we do the same and the total size for (6,7,8) is 311

Hex/Code size(GB)
0034 45
1101 35
20A1 34
630C 98
7034 101
8145 23
2000 56
6123 89

Thanks in advance all, Deiow

  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 15,768
Default Need Help on formal - output a sum

Assuming that your hex codes are text strings:

=SUMPRODUCT((LEFT(A2:A9)={"0","1","2"})*B2:B9)

=SUMPRODUCT((LEFT(A2:A9)={"6","7","8"})*B2:B9)

--
Biff
Microsoft Excel MVP


"Deiow" wrote in message
...
Hello All,

I need help, I have 2 columns, all the first digits in Hex/Code column
(0,1,2) and (6,7,8) then calculate the sum of the size, for example, in
A2,
A3, A4 and A8 has first digit of (0,1,2) then we calculate the sum of size
B2,B3,B4 and B8 is 170

Also for (6,7,8) we do the same and the total size for (6,7,8) is 311

Hex/Code size(GB)
0034 45
1101 35
20A1 34
630C 98
7034 101
8145 23
2000 56
6123 89

Thanks in advance all, Deiow



  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2
Default Need Help on formal - output a sum

Thanks T. Valko, appreciated your help, the formal is working wonderfull.
Very happy now, no more manual calculation

Thanks Again Deiow

"T. Valko" wrote:

Assuming that your hex codes are text strings:

=SUMPRODUCT((LEFT(A2:A9)={"0","1","2"})*B2:B9)

=SUMPRODUCT((LEFT(A2:A9)={"6","7","8"})*B2:B9)

--
Biff
Microsoft Excel MVP


"Deiow" wrote in message
...
Hello All,

I need help, I have 2 columns, all the first digits in Hex/Code column
(0,1,2) and (6,7,8) then calculate the sum of the size, for example, in
A2,
A3, A4 and A8 has first digit of (0,1,2) then we calculate the sum of size
B2,B3,B4 and B8 is 170

Also for (6,7,8) we do the same and the total size for (6,7,8) is 311

Hex/Code size(GB)
0034 45
1101 35
20A1 34
630C 98
7034 101
8145 23
2000 56
6123 89

Thanks in advance all, Deiow




  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 15,768
Default Need Help on formal - output a sum

You're welcome. Thanks for the feedback!

--
Biff
Microsoft Excel MVP


"Deiow" wrote in message
...
Thanks T. Valko, appreciated your help, the formal is working wonderfull.
Very happy now, no more manual calculation

Thanks Again Deiow

"T. Valko" wrote:

Assuming that your hex codes are text strings:

=SUMPRODUCT((LEFT(A2:A9)={"0","1","2"})*B2:B9)

=SUMPRODUCT((LEFT(A2:A9)={"6","7","8"})*B2:B9)

--
Biff
Microsoft Excel MVP


"Deiow" wrote in message
...
Hello All,

I need help, I have 2 columns, all the first digits in Hex/Code column
(0,1,2) and (6,7,8) then calculate the sum of the size, for example, in
A2,
A3, A4 and A8 has first digit of (0,1,2) then we calculate the sum of
size
B2,B3,B4 and B8 is 170

Also for (6,7,8) we do the same and the total size for (6,7,8) is 311

Hex/Code size(GB)
0034 45
1101 35
20A1 34
630C 98
7034 101
8145 23
2000 56
6123 89

Thanks in advance all, Deiow






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
Reset Text Direction in Formal Cells Menu JD Excel Discussion (Misc queries) 0 April 8th 08 04:36 PM
Help getting output value from another sheet [email protected] Excel Discussion (Misc queries) 1 January 15th 08 09:49 AM
VBA - Function Output Jeff Excel Discussion (Misc queries) 2 March 30th 07 07:53 PM
How do I get the output summary? ri Charts and Charting in Excel 1 February 6th 06 06:49 AM
Formating output. JustSomeGuy Excel Discussion (Misc queries) 12 November 29th 04 09:03 PM


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