#1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 181
Default how to do formula

Need help on how to do formula on spreadsheet, build a spread to keep track
on fuel for taxes. Is there any way to calculate total of fuel for each
state, on spread sheet on each roll is unit number, whom, where(Okla, Texas,
ect.), and how many gallon for fuel. Trying to do formula on states where
fuel is bought to calculate total fuel bought from each state, like if its OK
then it'll total all gallons for that state, if its TX it'll total all gallon
for that state. Any help?
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 4,339
Default how to do formula

Assume State is in column A and gallons in column B

=SUMPRODUCT(--(A2:A100="TX"),B2:B100)

Better if you put the State(s) in a cell and use:

=SUMPRODUCT(--(A2:A100=H2),B2:B100)

where H2="TX" (for example)

"Curtis" wrote:

Need help on how to do formula on spreadsheet, build a spread to keep track
on fuel for taxes. Is there any way to calculate total of fuel for each
state, on spread sheet on each roll is unit number, whom, where(Okla, Texas,
ect.), and how many gallon for fuel. Trying to do formula on states where
fuel is bought to calculate total fuel bought from each state, like if its OK
then it'll total all gallons for that state, if its TX it'll total all gallon
for that state. Any help?

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 181
Default how to do formula

This really help. One question, is there any way to do this in color? If I
dont use state but use color like if roll is yellow for Tx and orange for Ok?

"Toppers" wrote:

Assume State is in column A and gallons in column B

=SUMPRODUCT(--(A2:A100="TX"),B2:B100)

Better if you put the State(s) in a cell and use:

=SUMPRODUCT(--(A2:A100=H2),B2:B100)

where H2="TX" (for example)

"Curtis" wrote:

Need help on how to do formula on spreadsheet, build a spread to keep track
on fuel for taxes. Is there any way to calculate total of fuel for each
state, on spread sheet on each roll is unit number, whom, where(Okla, Texas,
ect.), and how many gallon for fuel. Trying to do formula on states where
fuel is bought to calculate total fuel bought from each state, like if its OK
then it'll total all gallons for that state, if its TX it'll total all gallon
for that state. Any help?

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



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