Subtotal Function not working

zahidrock

New Member
Joined
Jun 14, 2014
Messages
30
i am trying to getting sum on filter data but when i use subtotal function that are not working on there..

s0y3xu.jpg
 

Excel Facts

Highlight Duplicates
Home, Conditional Formatting, Highlight Cells, Duplicate records, OK to add pink formatting to any duplicates in selected range.
It looks like your values in column D Is formatted as number (oriented to the right in cell) as they should be.
But can you check if it really is numbers and not numbers stored as text?
 
Upvote 0
It looks like your values in column D Is formatted as number (oriented to the right in cell) as they should be.
But can you check if it really is numbers and not numbers stored as text?

Ohh!! i see that it is on text format, i have lot of cell like this can you tell me how can i convert all of them text to number?
 
Upvote 0
Code:
Sub TextRangeToNumbers_incolumn_D()
'Made by Datsmart 14-07-2006 on mr Excel
    Dim rng As Range
    Dim c As Range
'Change Column A referrence as needed
    Set rng = Range("D1:D" & Range("D1500").End(xlUp).Row)
    On Error Resume Next
'Cycle through each item in Rng, Trim value then add zero
    For Each c In rng
        If c.Value <> "" Then
            Application.WorksheetFunction.Trim (c.Value)    'Trim removes any spaces
            c.Value = c.Value + 0   'Adding 0 changes item to number
        Else
        End If
    Next c
End Sub
 
Upvote 0
Code:
Sub TextRangeToNumbers_incolumn_D()
'Made by Datsmart 14-07-2006 on mr Excel
    Dim rng As Range
    Dim c As Range
'Change Column A referrence as needed
    Set rng = Range("D1:D" & Range("D1500").End(xlUp).Row)
    On Error Resume Next
'Cycle through each item in Rng, Trim value then add zero
    For Each c In rng
        If c.Value <> "" Then
            Application.WorksheetFunction.Trim (c.Value)    'Trim removes any spaces
            c.Value = c.Value + 0   'Adding 0 changes item to number
        Else
        End If
    Next c
End Sub

I have already done this with another system.. thanks mate.. :)
 
Upvote 0

Forum statistics

Threads
1,214,652
Messages
6,120,747
Members
448,989
Latest member
mariah3

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top