LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #6   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5,651
Default unusual function needed, unusre how to/if possible

On Thu, 27 Mar 2008 13:50:00 -0700, Mike Morris
wrote:

Subtotals didn't quite work...but a good idea....

here's what my data looks like:

PO# line no Description Quantity BOX # Quantity Boxes
555-00 2 11-4040-605NL 220 159-169 11
555-00 2 11-4040-605NL 100 170-174 5
555-00 2 11-4040-605NL 500 175-199 25
555-00 2 11-4040-605NL 20 200 1
555-00 3 11-4040-618 160 201-208 8
555-00 3 11-4040-618 100 209-213 5
555-00 3 11-4040-618 20 214 1
555-00 3 11-4040-618 20 215 1
555-00 3 11-4040-618 240 216-227 12
555-00 3 11-4040-618 20 228 1
555-00 3 11-4040-618 20 229 1
555-00 3 11-4040-618 40 230-231 2
555-00 3 11-4040-618 20 232 1
555-00 4 60-2517-618 400 233-237 5
555-00 4 60-2517-618 160 238-239 2
555-00 4 60-2517-618 80 240 1

I need to subtotal the quantity column. The subtotal wizard isn't finding
the quantity to subtotal. (it's returning zeroes for changes in the item #
column)


Then your data is not what it appears to be.

First of all, I don't see any "item #" column in what you've posted, so I don't
really know what you are doing.

BUT, when I take your data, and use the Subtotal wizard, looking to sum the
Quantity on changes in "line no", it seems to work fine (see below).

So far as not totaling the Quantity, most likely those values are TEXT rather
than numbers. Subtotal will not total numbers that are stored as text.

You can test this by seeing the result of the formula =ISTEXT(cell_ref) where
cell_ref is some cell that contains what you think is a Quantity.

Here is what I get with your data from above:

-----------------------
PO# line no Description Quantity BOX # Boxes
555-00 2 11-4040-605NL 220 159-169 11
555-00 2 11-4040-605NL 100 170-174 5
555-00 2 11-4040-605NL 500 175-199 25
555-00 2 11-4040-605NL 20 200 1
2 Total 840
555-00 3 11-4040-618 160 201-208 8
555-00 3 11-4040-618 100 209-213 5
555-00 3 11-4040-618 20 214 1
555-00 3 11-4040-618 20 215 1
555-00 3 11-4040-618 240 216-227 12
555-00 3 11-4040-618 20 228 1
555-00 3 11-4040-618 20 229 1
555-00 3 11-4040-618 40 230-231 2
555-00 3 11-4040-618 20 232 1
3 Total 640
555-00 4 60-2517-618 400 233-237 5
555-00 4 60-2517-618 160 238-239 2
555-00 4 60-2517-618 80 240 1
4 Total 640
Grand Total 2120
-----------------------------------

--ron
 
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
Using a worksheet function to create an unusual cell reference pat Josh Craig Excel Worksheet Functions 3 March 13th 09 02:31 AM
TEXT function with unusual results Beans Excel Discussion (Misc queries) 4 April 16th 08 09:11 AM
Unusual Request... LewisAire Excel Discussion (Misc queries) 0 July 31st 06 12:08 PM
User-Defined Function Unusual Operation, Again Joe Adams Excel Programming 1 July 15th 03 08:31 AM
Unusual Operation of a User Defined Function Joe Adams Excel Programming 6 July 10th 03 09:58 PM


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