#1   Report Post  
Mike R
 
Posts: n/a
Default "IF" Formula

xl2000€”Totaling time worked at each of three stores for a two-week pay
period. What I have is Columns C, D, E, F, G, H, & I, are week one. Columns
M, N, O, P, Q, R, S, are week two. I have, through data validation,
dropdowns to select Store 1, Store 2, or Store 3, in row 7 of each of the
described columns. The employee will select the store worked for that day,
by column (C Monday, DTuesday, E Wednesday, etc). Then enter the time
worked in the same column. In row 18 are the total hours for each day
worked. Now I need to summaries the time worked for each store throughout
the two week time period. Summaries are in C25 for Store 1, E25 for Store 2,
and G25 for Store 3. I think I need an IF formula in C25, E25, and H25 to
bring these totals together for each store, but do not know how to do it. It
seems to me, in C25 for instance, it needs to be something like IF Store 1
(in the dropdown box C7) then add C18, IF Store 2??? IF Store 3??? I would
have to include all 14 columns into the formula. From there I am lost!!!
Thanks for your help

Mike R.

  #2   Report Post  
Peo Sjoblom
 
Posts: n/a
Default

How about using SUMIF? The stores are in row 7 and the time in 18

=SUMIF(C7:I7,"Store 2",C18:I18)+SUMIF(M7:S7,"Store 2",M18:S18)

Don't know what you have in jkl but you might be able to use

=SUMIF(C7:S7,"Store 2",C18:S18)


will give you the total hours for store 2, to display the time use a custom
format of [hh]:mm


--

Regards,

Peo Sjoblom


"Mike R" wrote in message
...
xl2000-Totaling time worked at each of three stores for a two-week pay
period. What I have is Columns C, D, E, F, G, H, & I, are week one.

Columns
M, N, O, P, Q, R, S, are week two. I have, through data validation,
dropdowns to select Store 1, Store 2, or Store 3, in row 7 of each of the
described columns. The employee will select the store worked for that

day,
by column (C Monday, DTuesday, E Wednesday, etc). Then enter the time
worked in the same column. In row 18 are the total hours for each day
worked. Now I need to summaries the time worked for each store throughout
the two week time period. Summaries are in C25 for Store 1, E25 for Store

2,
and G25 for Store 3. I think I need an IF formula in C25, E25, and H25 to
bring these totals together for each store, but do not know how to do it.

It
seems to me, in C25 for instance, it needs to be something like IF Store 1
(in the dropdown box C7) then add C18, IF Store 2??? IF Store 3??? I

would
have to include all 14 columns into the formula. From there I am lost!!!
Thanks for your help

Mike R.



  #3   Report Post  
Mike R
 
Posts: n/a
Default

Peo

Thanks again you hit a home run for me. I had to use the first option you
gave me because there is other information in the three cells separating the
weeks. One last really simple question. Does one need to make these cell
referances absolute to copy and paste them without the cell referances
changing?
Thanks again!!!!

Mike R.

"Peo Sjoblom" wrote:

How about using SUMIF? The stores are in row 7 and the time in 18

=SUMIF(C7:I7,"Store 2",C18:I18)+SUMIF(M7:S7,"Store 2",M18:S18)

Don't know what you have in jkl but you might be able to use

=SUMIF(C7:S7,"Store 2",C18:S18)


will give you the total hours for store 2, to display the time use a custom
format of [hh]:mm


--

Regards,

Peo Sjoblom


"Mike R" wrote in message
...
xl2000-Totaling time worked at each of three stores for a two-week pay
period. What I have is Columns C, D, E, F, G, H, & I, are week one.

Columns
M, N, O, P, Q, R, S, are week two. I have, through data validation,
dropdowns to select Store 1, Store 2, or Store 3, in row 7 of each of the
described columns. The employee will select the store worked for that

day,
by column (C Monday, DTuesday, E Wednesday, etc). Then enter the time
worked in the same column. In row 18 are the total hours for each day
worked. Now I need to summaries the time worked for each store throughout
the two week time period. Summaries are in C25 for Store 1, E25 for Store

2,
and G25 for Store 3. I think I need an IF formula in C25, E25, and H25 to
bring these totals together for each store, but do not know how to do it.

It
seems to me, in C25 for instance, it needs to be something like IF Store 1
(in the dropdown box C7) then add C18, IF Store 2??? IF Store 3??? I

would
have to include all 14 columns into the formula. From there I am lost!!!
Thanks for your help

Mike R.




  #4   Report Post  
Peo Sjoblom
 
Posts: n/a
Default

Yes, select (high light) the whole formula in the formula bar, then press F4
to toggle
different references

--

Regards,

Peo Sjoblom

"Mike R" wrote in message
...
Peo

Thanks again you hit a home run for me. I had to use the first option you
gave me because there is other information in the three cells separating

the
weeks. One last really simple question. Does one need to make these cell
referances absolute to copy and paste them without the cell referances
changing?
Thanks again!!!!

Mike R.

"Peo Sjoblom" wrote:

How about using SUMIF? The stores are in row 7 and the time in 18

=SUMIF(C7:I7,"Store 2",C18:I18)+SUMIF(M7:S7,"Store 2",M18:S18)

Don't know what you have in jkl but you might be able to use

=SUMIF(C7:S7,"Store 2",C18:S18)


will give you the total hours for store 2, to display the time use a

custom
format of [hh]:mm


--

Regards,

Peo Sjoblom


"Mike R" wrote in message
...
xl2000-Totaling time worked at each of three stores for a two-week pay
period. What I have is Columns C, D, E, F, G, H, & I, are week one.

Columns
M, N, O, P, Q, R, S, are week two. I have, through data validation,
dropdowns to select Store 1, Store 2, or Store 3, in row 7 of each of

the
described columns. The employee will select the store worked for that

day,
by column (C Monday, DTuesday, E Wednesday, etc). Then enter the

time
worked in the same column. In row 18 are the total hours for each day
worked. Now I need to summaries the time worked for each store

throughout
the two week time period. Summaries are in C25 for Store 1, E25 for

Store
2,
and G25 for Store 3. I think I need an IF formula in C25, E25, and

H25 to
bring these totals together for each store, but do not know how to do

it.
It
seems to me, in C25 for instance, it needs to be something like IF

Store 1
(in the dropdown box C7) then add C18, IF Store 2??? IF Store 3??? I

would
have to include all 14 columns into the formula. From there I am

lost!!!
Thanks for your help

Mike R.






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
Match / Vlookup within an Array formula Hari Prasadh Excel Discussion (Misc queries) 3 February 3rd 05 04:37 PM
revert formula insertion to old method Don't be a pain in the ass Setting up and Configuration of Excel 0 January 24th 05 01:49 PM
Relative Indirect Formula Referencing? Damian Excel Worksheet Functions 1 January 7th 05 04:16 AM
Help with macro formula and variable Huge project Excel Worksheet Functions 0 December 28th 04 01:27 AM
Cell doesn't show formula result - it shows formula (CTRL + ' doe. o0o0o0o Excel Worksheet Functions 6 November 19th 04 03:13 PM


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