#1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 49
Default =IF problem

Hi,
I have a spreadsheet which is to be used to monitor spend according to
specific cost codes. I am having problems though in writing formulas that
actually work..

Can anyone help in writing a formula to work out the total spend (£) (which
could be in any of the cells h44:h420), for spend which is on a certain cost
code e.g. '6210 - Oil' which can be in any of the cells e44:e420. The new
total (£) needs to go into cell d2.

If I can see how to do one cost code, I can then alter the formula to work
out the others.

note column d uses a drop down input

I'm sure its simple, but I'm struggling.

Cheers
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 49
Default =IF problem

Sorry, I missed out another condition of the formula.

Column J, (range j44:j420) must be marked Yes for the amout to be considered
in the formula

Please help!

"DaveAsh" wrote:

Hi,
I have a spreadsheet which is to be used to monitor spend according to
specific cost codes. I am having problems though in writing formulas that
actually work..

Can anyone help in writing a formula to work out the total spend (£) (which
could be in any of the cells h44:h420), for spend which is on a certain cost
code e.g. '6210 - Oil' which can be in any of the cells e44:e420. The new
total (£) needs to go into cell d2.

If I can see how to do one cost code, I can then alter the formula to work
out the others.

note column d uses a drop down input

I'm sure its simple, but I'm struggling.

Cheers

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 11,058
Default =IF problem

=SUMPRODUCT((H44:H420)*(E44:E420="6210 - Oil")*(J44:J420="Yes"))

--
Gary''s Student - gsnu200831


"DaveAsh" wrote:

Sorry, I missed out another condition of the formula.

Column J, (range j44:j420) must be marked Yes for the amout to be considered
in the formula

Please help!

"DaveAsh" wrote:

Hi,
I have a spreadsheet which is to be used to monitor spend according to
specific cost codes. I am having problems though in writing formulas that
actually work..

Can anyone help in writing a formula to work out the total spend (£) (which
could be in any of the cells h44:h420), for spend which is on a certain cost
code e.g. '6210 - Oil' which can be in any of the cells e44:e420. The new
total (£) needs to go into cell d2.

If I can see how to do one cost code, I can then alter the formula to work
out the others.

note column d uses a drop down input

I'm sure its simple, but I'm struggling.

Cheers

  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 49
Default =IF problem

Thanks - That works like a dream

Regards

"Gary''s Student" wrote:

=SUMPRODUCT((H44:H420)*(E44:E420="6210 - Oil")*(J44:J420="Yes"))

--
Gary''s Student - gsnu200831


"DaveAsh" wrote:

Sorry, I missed out another condition of the formula.

Column J, (range j44:j420) must be marked Yes for the amout to be considered
in the formula

Please help!

"DaveAsh" wrote:

Hi,
I have a spreadsheet which is to be used to monitor spend according to
specific cost codes. I am having problems though in writing formulas that
actually work..

Can anyone help in writing a formula to work out the total spend (£) (which
could be in any of the cells h44:h420), for spend which is on a certain cost
code e.g. '6210 - Oil' which can be in any of the cells e44:e420. The new
total (£) needs to go into cell d2.

If I can see how to do one cost code, I can then alter the formula to work
out the others.

note column d uses a drop down input

I'm sure its simple, but I'm struggling.

Cheers

  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 11,058
Default =IF problem

How about:

=SUMPRODUCT((H44:H420),--(E44:E420="6210 - Oil"))
--
Gary''s Student - gsnu200831


"DaveAsh" wrote:

Hi,
I have a spreadsheet which is to be used to monitor spend according to
specific cost codes. I am having problems though in writing formulas that
actually work..

Can anyone help in writing a formula to work out the total spend (£) (which
could be in any of the cells h44:h420), for spend which is on a certain cost
code e.g. '6210 - Oil' which can be in any of the cells e44:e420. The new
total (£) needs to go into cell d2.

If I can see how to do one cost code, I can then alter the formula to work
out the others.

note column d uses a drop down input

I'm sure its simple, but I'm struggling.

Cheers



  #6   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 3
Default =IF problem

If I understand your request I wouyld suggest the =DSUM formula. Hope that
helps

"DaveAsh" wrote:

Hi,
I have a spreadsheet which is to be used to monitor spend according to
specific cost codes. I am having problems though in writing formulas that
actually work..

Can anyone help in writing a formula to work out the total spend (£) (which
could be in any of the cells h44:h420), for spend which is on a certain cost
code e.g. '6210 - Oil' which can be in any of the cells e44:e420. The new
total (£) needs to go into cell d2.

If I can see how to do one cost code, I can then alter the formula to work
out the others.

note column d uses a drop down input

I'm sure its simple, but I'm struggling.

Cheers

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
Started out as an Access problem. Now an Excel problem RobertM Excel Discussion (Misc queries) 2 April 26th 06 07:30 PM
problem with a conditional max problem Brian Cornejo Excel Discussion (Misc queries) 1 February 18th 05 06:25 PM


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