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

Quick Sum
Select a range of cells. The total appears in bottom right of Excel screen. Right-click total to add Max, Min, Count, Average.

Vidar

Well-known Member
Joined
Jul 19, 2012
Messages
1,254
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

zahidrock

New Member
Joined
Jun 14, 2014
Messages
30
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

Oeldere

Well-known Member
Joined
Dec 29, 2011
Messages
2,213
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

zahidrock

New Member
Joined
Jun 14, 2014
Messages
30
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,190,677
Messages
5,982,214
Members
439,769
Latest member
trungminh2802

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
Top