Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,118
Default Formulas or VBA?

Try something like this:

Using your data structure.....
Qty in rows 2,5,8,....etc
Model in rows 3,6,9 etc

As long as the Qty is ALWAYS in the row above the model

Then....
B100: 120
C100: =SUMIF($C$3:$C$98,$B100,$C$2:$C$97)

B101: 125
C101: =SUMIF($C$3:$C$98,$B101,$C$2:$C$97)

Notice that the Range argument is offset from the Sum_Range argument by 1 cell

Is that something you can work with?
***********
Regards,
Ron

XL2002, WinXP


"Mark Ivey" wrote:

I have a problem with a weekly sales report. There are 5 possible orders in a given day. Some of these orders may have the same Model number. My manager wants to create a totals table below each day showing how many of each Model we had on that day. I tried to figure out how with nested IF's, but it got scary and still didn't work out right. I finally made a pretty large table on another sheet that compares each order (one at a time) for ONE Model at a time. Then reporting back the total for that model back to the original Totals section.

Does anyone know of a formula that would work with this scenario, or should I hang the formulas out to pasture and fix it up with VBA?

Please see attached for a picture of the table.


--
Mark Ivey

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 25
Default Formulas or VBA?

Ron,

I had not thought of using the SUMIF with an offset. I think that will work. There is actually other data in the same column for other information about the Model, but I think the offset you mentioned will take care of that problem.

Thanks a million...

--
Mark Ivey
"Ron Coderre" wrote in message ...
Try something like this:

Using your data structure.....
Qty in rows 2,5,8,....etc
Model in rows 3,6,9 etc

As long as the Qty is ALWAYS in the row above the model

Then....
B100: 120
C100: =SUMIF($C$3:$C$98,$B100,$C$2:$C$97)

B101: 125
C101: =SUMIF($C$3:$C$98,$B101,$C$2:$C$97)

Notice that the Range argument is offset from the Sum_Range argument by 1 cell

Is that something you can work with?
***********
Regards,
Ron

XL2002, WinXP


"Mark Ivey" wrote:

I have a problem with a weekly sales report. There are 5 possible orders in a given day. Some of these orders may have the same Model number. My manager wants to create a totals table below each day showing how many of each Model we had on that day. I tried to figure out how with nested IF's, but it got scary and still didn't work out right. I finally made a pretty large table on another sheet that compares each order (one at a time) for ONE Model at a time. Then reporting back the total for that model back to the original Totals section.

Does anyone know of a formula that would work with this scenario, or should I hang the formulas out to pasture and fix it up with VBA?

Please see attached for a picture of the table.


--
Mark Ivey

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,118
Default Formulas or VBA?

Thanks for the feedback.....I'm glad that worked for you.

***********
Regards,
Ron

XL2002, WinXP


"Mark Ivey" wrote:

Ron,

I had not thought of using the SUMIF with an offset. I think that will work. There is actually other data in the same column for other information about the Model, but I think the offset you mentioned will take care of that problem.

Thanks a million...

--
Mark Ivey
"Ron Coderre" wrote in message ...
Try something like this:

Using your data structure.....
Qty in rows 2,5,8,....etc
Model in rows 3,6,9 etc

As long as the Qty is ALWAYS in the row above the model

Then....
B100: 120
C100: =SUMIF($C$3:$C$98,$B100,$C$2:$C$97)

B101: 125
C101: =SUMIF($C$3:$C$98,$B101,$C$2:$C$97)

Notice that the Range argument is offset from the Sum_Range argument by 1 cell

Is that something you can work with?
***********
Regards,
Ron

XL2002, WinXP


"Mark Ivey" wrote:

I have a problem with a weekly sales report. There are 5 possible orders in a given day. Some of these orders may have the same Model number. My manager wants to create a totals table below each day showing how many of each Model we had on that day. I tried to figure out how with nested IF's, but it got scary and still didn't work out right. I finally made a pretty large table on another sheet that compares each order (one at a time) for ONE Model at a time. Then reporting back the total for that model back to the original Totals section.

Does anyone know of a formula that would work with this scenario, or should I hang the formulas out to pasture and fix it up with VBA?

Please see attached for a picture of the table.


--
Mark Ivey

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
E2007 formulas display as formulas, not results Pierre Excel Worksheet Functions 3 January 14th 10 04:59 PM
Counting # of Formulas in a column with formulas and entered data Brand Excel Worksheet Functions 1 October 10th 09 01:01 PM
CELLS NOT CALC FORMULAS - VALUES STAY SME FORMULAS CORRECT?? HELP Sherberg Excel Worksheet Functions 4 September 11th 07 01:34 AM
Formulas not evaluated, Formulas treated as strings Bob Sullentrup Excel Discussion (Misc queries) 0 November 27th 06 08:01 PM
AdvancedFilter on cells with formulas, returning values and not formulas Claus[_3_] Excel Programming 2 September 7th 05 02:40 PM


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