Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
SteveFox
 
Posts: n/a
Default Excel formula help needed


Could someone tell me the excel formula to do the below?

If the 1st word (in cell A1) is the same as the 1st word of the 2nd row
(A2) then add the 3rd word of the 1st row (1C) and the 3rd word of the
2nd row (2C) and divide the sum of the 4th word of the 1st and 2nd row
(D1 and D2) and put the result into a cell with only the 1st word and
result of the division. And I want this to loop until it reachs the
last row.

e.g. I have a file which contains 6 rows below:

AAA Unit1 60 39
AAA Unit7 30 15
BBB Unit3 80 60
CCC Unit4 50 25
CCC Unit8 90 45
CCC Unit9 70 40

I want it to output 3 row below:

AAA 0.6
BBB 0.75
CCC 0.52


The result for AAA 0.6 was calculated by (39+15)/(60+30) taken from 1st
and second row.


Any help will be greatly appreciated.


--
SteveFox
------------------------------------------------------------------------
SteveFox's Profile: http://www.excelforum.com/member.php...o&userid=28975
View this thread: http://www.excelforum.com/showthread...hreadid=487078

  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Barb Reinhardt
 
Posts: n/a
Default Excel formula help needed

Let's say your six rows are in A1-D6

A9 = "AAA"
A10 = "BBB"
A11 = "CCC"

Try this
B9 =SUMIF(A$1:A$6,A8,D$1:D$6)/SUMIF(A$1:A$6,A8,C$1:C$6)

"SteveFox" wrote in
message ...

Could someone tell me the excel formula to do the below?

If the 1st word (in cell A1) is the same as the 1st word of the 2nd row
(A2) then add the 3rd word of the 1st row (1C) and the 3rd word of the
2nd row (2C) and divide the sum of the 4th word of the 1st and 2nd row
(D1 and D2) and put the result into a cell with only the 1st word and
result of the division. And I want this to loop until it reachs the
last row.

e.g. I have a file which contains 6 rows below:

AAA Unit1 60 39
AAA Unit7 30 15
BBB Unit3 80 60
CCC Unit4 50 25
CCC Unit8 90 45
CCC Unit9 70 40

I want it to output 3 row below:

AAA 0.6
BBB 0.75
CCC 0.52


The result for AAA 0.6 was calculated by (39+15)/(60+30) taken from 1st
and second row.


Any help will be greatly appreciated.


--
SteveFox
------------------------------------------------------------------------
SteveFox's Profile:
http://www.excelforum.com/member.php...o&userid=28975
View this thread: http://www.excelforum.com/showthread...hreadid=487078



  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
SteveFox
 
Posts: n/a
Default Excel formula help needed


Thanks Barb!


--
SteveFox
------------------------------------------------------------------------
SteveFox's Profile: http://www.excelforum.com/member.php...o&userid=28975
View this thread: http://www.excelforum.com/showthread...hreadid=487078

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 CHALLENGE...3 questions(indirect,rank,array formula)... Mlowry Excel Worksheet Functions 8 August 1st 05 07:34 AM
converting formula from lotus.123 to excel zaharah Excel Worksheet Functions 2 July 27th 05 03:04 PM
Excel Range Value issue (Excel 97 Vs Excel 2003) Keeno Excel Discussion (Misc queries) 2 June 13th 05 02:01 PM
Excel formula needed to amounts into one column pulling from 2 col Scott Excel Worksheet Functions 1 March 3rd 05 06:42 PM
How do I get the formula bar in excel 2003 unionhall Excel Discussion (Misc queries) 1 February 17th 05 10:10 AM


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