#1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 12
Default If Then Calculate

How would I write a formula that states if account number = 94411 add current
cost amount from Column "a" into a total instead of me manually selecting
which cells to add.

(A) (B) (C)
Current Projected Account
Cost Cost Number

$2,180.00 $2,180.00 94411
$10,414.98 $10,414.98 94411
$1,955.20 $2,045.00 94621
$918.23 $1,038.00 93703
$275.00 $275.00 94411
$200.00 $210.00 94411
$1,635.00 $1,635.00 93703
$135.00 $0.00 94411
$1,440.00 $1,440.00 94411

Thanks for all your help.

  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1
Default If Then Calculate


Assuming $2180.00 is in cell A1

to calculate the total of account #94411 use:
=SUMIF(C1:C9,94411,B1:B9)

You can automate the formula for every account by replacing the text
94411 with the cell that contains that account number.


--
carstowal
------------------------------------------------------------------------
carstowal's Profile: http://www.excelforum.com/member.php...o&userid=37476
View this thread: http://www.excelforum.com/showthread...hreadid=571413

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 459
Default If Then Calculate

Gladys wrote:
How would I write a formula that states if account number = 94411 add
current cost amount from Column "a" into a total instead of me
manually selecting which cells to add.

(A) (B) (C)
Current Projected Account
Cost Cost Number

$2,180.00 $2,180.00 94411
$10,414.98 $10,414.98 94411
$1,955.20 $2,045.00 94621
$918.23 $1,038.00 93703
$275.00 $275.00 94411
$200.00 $210.00 94411
$1,635.00 $1,635.00 93703
$135.00 $0.00 94411
$1,440.00 $1,440.00 94411

Thanks for all your help.



I think you can use SUMIF function. Check the online help.


--
Hope I helped you.

Thanks in advance for your feedback.

Ciao

Franz Verga from Italy


  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 12
Default If Then Calculate

Forget the question - I had a brain fart - SUMIF - :)

"Gladys" wrote:

How would I write a formula that states if account number = 94411 add current
cost amount from Column "a" into a total instead of me manually selecting
which cells to add.

(A) (B) (C)
Current Projected Account
Cost Cost Number

$2,180.00 $2,180.00 94411
$10,414.98 $10,414.98 94411
$1,955.20 $2,045.00 94621
$918.23 $1,038.00 93703
$275.00 $275.00 94411
$200.00 $210.00 94411
$1,635.00 $1,635.00 93703
$135.00 $0.00 94411
$1,440.00 $1,440.00 94411

Thanks for all your help.

  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 27
Default If Then Calculate

Gladys,

There is a formula called SUMIF you can use it as follows:

=SUMIF($C3:$C100,"94411",$A3:$A100)

I have assumed that your first row of data is in row 3

This works by telling excel the area where your reference is, your
reference, and the area to total where there are matches

HTH

Steve

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
any formula to auto calculate 1st-12th is 12 days pls? Kelly Lim Excel Discussion (Misc queries) 13 June 17th 06 09:25 AM
Auto Calculate Randy S Excel Discussion (Misc queries) 1 May 25th 06 01:35 PM
Spreadsheet Won't Calculate Scott Excel Discussion (Misc queries) 0 September 29th 05 05:37 PM
help with sumif to calculate column rvnwdr Excel Discussion (Misc queries) 3 June 30th 05 12:38 AM
Not able to calculate. mark_kramarczyk Excel Worksheet Functions 1 December 29th 04 08:55 PM


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