Quantcast
Channel: Excel IT Pro Discussions forum
Viewing all 11829 articles
Browse latest View live

Nesting SUMIFS in SUBTOTAL or Nesting SUBTOTAL in SUMIFS

$
0
0

Hi,

I have a table of data like this

CountLocationCategory
0Local1Cat1
1Local3Cat1
2Local1Cat2
4Local1Cat1
0Local1Cat2
1Local2Cat1
2Local2Cat1
3Local1Cat2
4Local1Cat1

I would like to be able to use one of the formulas below to exclude from the totals rows that get filtered out, but I can't get either formula to wok (colum letters are A,B,C ):

  • =SUBTOTAL(109,SUMIFS(A2:A10,B2:B10,"Local2",C2:C20,"Cat1"))
  • =SUMIFS(SUBTOTAL(109,A2:A10),B2:B10,"Local2",C2:C10,"Cat1")

Can this be done in onteof these ways?  If not, how can it be done?

Any help you can give will be appreciated.

Thanks,



Excel "IF" formula not calculating correct result

$
0
0

I hope this is an easy fix, but I cannot see why this is happening.

Numbers in column B, formula in Column A

Formula: =IF(B1=B2,1,2)

When I fill this formula in series in column A, the result shown is always 1, even when the result should be 2. When I click on a cell where the result is 1 but should be 2, select the formula bar, and hit enter, the correct result, 2, appears in the cell. This indicates to me that the formula is not wrong, but that Excel is not calculating the formula.

Why is Excel not calculating the result for each cell until after I enter the formula bar for each cell? Is there some option that is switch on/off?

(and yes, the formula increments for each row, so the fill series test is b1=b2, b2=b3, etc.. etc.)

Excel 2010/2013

Windows 7 Pro

web query returns different page than browser

$
0
0

I have been using a Excel web query to download yahoo option data. Recently the yahoo option table data has changed.  Now when I open the Yahoo web page in Excel either with my vba code or with the "Web Query" I get a different web page than if I open the page in my browser. 

Why would I get a different web page from yahoo using the web query?

Web Query

Web page in Browser

                  

Sub GetYahoo()

    Dim url As String, YahooHtml As String
    Dim HttpObj As MSXML2.XMLHTTP60

    url = "https://finance.yahoo.com/q/op?s=ABX&date=1415318400"

    Set HttpObj = New MSXML2.XMLHTTP60
    HttpObj.Open "GET", url, False
    HttpObj.Send

    While HttpObj.readyState <> 4
            DoEvents
    Wend

    YahooHtml = HttpObj.responseText

End Sub

Excel 2013 Standalone: There are no products affected by this package installed on this system

$
0
0

Good day

I need to install an update for Excel 2013 Standalone in order to enable Power Pivot, but I get the error "There are no products affected by this package installed on this system".

I have tried Service Packing Office 2013, but I get the same error.

Please assist.

test connection successful and 0 rows transfered in Powerpivot

$
0
0
Hi..one of my user was unable to get the data.The test connection is successful but its getting 0 rows eventually. While people using the same datafeeds are able to get the data. Can any one help me how can I troubleshoot? 

Its powerpivot 2010 and 32 bit software !

Help writing a excel macro to do a copy of 4 cells and paste transpose. I need to loop the copy and paste through 6900 rows of data.

$
0
0

  I need help writing a excelmacro to do a copy of 4 cells and paste transpose.  I need to loop the copy and paste through 6900 rows of data.  I started the macro with two rounds of copying & paster transposed but I need help getting it to loop through all rows.  Here is what macro looks like now.

    Range("I2:I5").Select
    Application.CutCopyMode = False
    Selection.Copy
    Range("J2").Select
    Selection.PasteSpecial Paste:=xlPasteAll, Operation:=xlNone, SkipBlanks:= _
        False, Transpose:=True
    Range("I6:I9").Select
    Application.CutCopyMode = False
    Selection.Copy
    Range("J6").Select
    Selection.PasteSpecial Paste:=xlPasteAll, Operation:=xlNone, SkipBlanks:= _
        False, Transpose:=True
End Sub

Missing Excel Macro - Didn't save as .xlsm

$
0
0
So I realized that I didn't save my file as a macro-enabled workbook before I closed it, and now my macro is completely gone.  I haven't shut down the computer since then, and I was wondering if it was still in my computer in a temporary folder somewhere.  I already tried going to the PERSONAL in C:\Users\XXXX\AppData\Roaming\Microsoft\Excel\XLSTART and I didn't not find anything there.  Is there anything I can do now, or is that baby gone?  This is Excel 2010

PowerQuery/Power Pivot import from database error

$
0
0

Hi,

I am trying to import data into PowerQuery or PowerPivot and I get the following error when importing data 'From Database':

Could not load file or assembly 'System.EnterpriseServices.Wrapper.dll' or one of its dependencies. Invalid access to memory location. (Exception from HRESULT: 0x800703E6)

Any assistance would be greatly appreciated!

Warm Regards,

Stephen


Probable bug on Excel 2010

$
0
0

It's more of a heads up for you guys since I didn't find anything about it on the internet.  I'm using version 14.0.7128.5000 (32-bit) and if I auto-increment dates, and if both dates used for the auto-increment have 12pm time in it, the auto-increment will lose 5 milliseconds per cell, at least that's what I get when trying to read those cells on C# using openxml.  The values will show up normally on excel but when I convert them using FromOADate they will seem like they have one second less (but it's actually only 5 milliseconds less per cell dragged).

To reproduce this bug I use the following steps:

- Cell A2 - 10/19/2014 12:19 PM

- Cell A3 - 10/19/2014 12:18 PM

- Select both cells

- click on the little square on the bottom right of the cell selection

- drag it down

- try to read the fields A4 and below on C# using openxml

The first two cells written by hand will remain with the correct values but the cells A4 and below will "lose" 5 milliseconds for each cell.

Cells will display the correct value on excel but will have less milliseconds than they should for a FromOADate conversion.

The dates don't even need to be on the same day, you just need to have both dates having a 12PM time in it.

My locale is pt-BR or something, I can look into it more accurately if needed, in case you can't reproduce this bug.

Cheers.


"Excel found unreadable content in [Book_Name]" in Excel 2010 PowerPivot table containing KPIs and time dimension measures

$
0
0

When attempting to open in Excel 2010 an .xlsx doc containing two PowerPivot Tables I get an error message:

"Excel found unreadable content in 'Book_Name.' Do you want to recover the contents of this workbook?"


Upon clicking yes, Excel disables one of the first PowerPivot tables (which also contains KPIs) and transforms the data into text and I get the below error log:


<?xml version="1.0" encoding="UTF-8" standalone="true"?>
-<recoveryLog xmlns="error095920_01.xmlErrors">http://schemas.openxmlformats.org/spreadsheetml/2006/main"><logFileName>error095920_01.xml</logFileName><summary>Errors were detected in file 'C:\Users\xxx\Desktop\Powerpivot Demand Supply Model 3i.xlsx'</summary>-<removedParts summary="Following is a list of removed parts:"><removedPart>Removed Part: /xl/pivotTables/pivotTable1.xml part with XML error. (PivotTable view) Catastrophic failure Line 2, column 0.</removedPart></removedParts>-<removedRecords summary="Following is a list of removed records:"><removedRecord>Removed Records: Workbook properties from /xl/workbook.xml part (Workbook)</removedRecord></removedRecords></recoveryLog>

I've already tried:

  • Reinstalling VB for Apps
  • 2010 Hotfix package (already had it)

Could this have something to do with the PowerPivot KPIs? Are KPIs unstable in general and should I be avoiding them? There are time dimension calculated measures in that table.

Excel 2010 missing default suggested file name in Save As dialog box

$
0
0

I’m using Excel 2010 running on Windows 7 (32 bit).  When I open a certain file which produces the following message: "A file is in a different file format than its extension indicates", and then go to “Save As” (or “Save”) the file, the default suggested file name is missing (blank).  This didn't occur in previous versions of Excel. In previous versions, Excel would automatically populate the original file name in to the File Name field.  I have searched all over the net, looking for a way to change Excel so that it will once again populate the file name in this situation. 

To reproduce:

  1. Create a new blank workbook
  2. save as type “Web Page”, (i.e. File name:  “Blank Example.html”)
  3. Close workbook
  4. In windows, rename file from .html to .xls  (i.e. rename “Blank Example.html” to “Blank Example.xls”)
  5. In Excel open renamed file (i.e. “Blank Example.xls”) and click “Yes” when prompted with the “A file is in a different file format than its extension indicates” message.
  6. Do a “Save As” and you will notice that the File Name is blank. In previous versions, this field would contain the current workbook file name  (i.e. “Blank Example.xls”)

Any help will be greatly appreciated.

Pivot chart data changing when using previously saved template

$
0
0

When I use a saved chart template on a pivot chart, it reverts all data to a different chart.  It will not hold the same data as the pivot table that I first created the chart from.  Anyone have advice?  Thanks

 

More info:  The chart is changing everything.  It is not even a chart that is now linked with this data.  I do have multiple pivot tables, so I could have multiple charts.

Range of Excel locked cells

$
0
0
 

Hi Experts,

I have a Workbook with many worksheets.

I wanted to:

1. Share this Workbooks to many users. How?

2. As my users opens the workbook to any of the worksheetscan only input information to the Range $I$3:$P$60000

3. any of my users can’t change or add/delete rows or columns

4. and can’t change any of the information that is in the cell range A3:H60000

 

5. As the originator of the workbook I can add/delete rows or columns even range I3:P60000 is locked. Can excel do this?

6.As the originator of the workbook I can also input information in the range A3:H60000 but can’t modify any information in the range I3:P60000 unless open with password. Can it be possible in excel?

any thoughts would be appreciated.

thanks in advance

M032313

Problem getting an installed and activated add-in to execute

$
0
0
In Excel 2013, I have installed and activated an add-in from a verified source, shows check in the box, etc.  This add-in is from Statconn (MS verified source), and is the link GUI into the well known statistical programme R.  In Excel 2010, this add-in displayed the command "RExcel" on the main command ribbon, which would then bring up a series of subcommands.  But there is nothing on any menu to execute in this new 2013 version of Excel.  I have searched all through Excel to try to find a way to execute this add-in, but no joy.  So my question is, how can one activate an add-in that is a) installed, b) activated showing checked on the box, and c) from verified source?  Is there any hot key or special command inside Excel? 

Excel date format is wrong after setting whole worksheet to capitals

$
0
0

Hi,

One of our users asked me to have all text in a sheet in capitals so I fixed this by adding this code to the sheet :

Private Sub Worksheet_Change(ByVal Target As Range)
    Dim cell   As Range
    On Error Resume Next
    Application.EnableEvents = False
    For Each cell In Target
        cell = UCase(cell)
    Next
    Application.EnableEvents = True
End Sub

This works fine, whenever she enter text, it's automatically converted to caps.

However, since I added the code, the date format has changed from Dutch (dd/mm/yyyy) to English (mm/dd/yyyy).
When she enters a date of which the first two characters are smaller than 13, it gets converted to mm/dd, and when she enters a date greater than 12, it gets correctly formatted as dd/mm.

The cell format is set to a standard date type, with the correct locale but the code somehow overwrites the format.
When I remove the code, the format is correct again.

For now I've fixed this by simply applying a custom format but I would like to know if this is normal behavior and if there's
another way to solve this?

Regards,

Dennis


How does a macro know the name of its own workbook?

$
0
0

Let's say I write a macro in a workbook xyz.xlsm. How does the macro know the name of the workbook where it is residing is xyz.xlsm? Thanks.

Finding missing dates in excel

$
0
0

Hi,
 I am struggling with the below scenario. Your help is gonna save lot of manual work. Thanks in advance.
 Below are two sheets in my excel.
Sheet1
 Col1(obj) Col2 (Trade Date)
 ob1 2014-20-01
 ob1 2014-21-01
 ob1 2014-24-01
 ob2 2014-20-01
 ob2 2014-22-01
 ob2 2014-23-01
 ob3 2014-24-01

Sheet2
 Col1 1(All trade dates exceluding weekends and holidays)
 2014-01-20
 2014-01-21
 2014-01-22
 .....
 2014-12-29
 2014-12-30
 2014-12-31

I want to find out for each object which all trade date is missing.(when compared to All trade dates in sheet2 )
So I am expecting an output as below in new sheet.
 Sheet3
 Col1 (obj) Col2 (Missing Dates)
 obj1 2014-22-01
 obj1 2014-23-01
 obj2 2014-21-01
 obj2 2014-24-01
 Obj3 2014-20-01
 ...... ...........

Please help me out.

Thanks,
 Abhishek 



How to create HeatMap based on Country Credit Rating?

$
0
0

How to create Heatmap based on Country Credit Rating i....

Credit Ratings are AAA, -AAA, +AA, AA, -AA, +A, A, -A, +BBB, BBB, -BBB, +BB....... From Green To Red

Country    Credit Rating

AngolaBB-
BotswanaA-
Burkina FasoB
EthiopiaB-
GhanaB
MoroccoBBB-
NigeriaBB-
Sierra LeoneB-
South AfricaBBB
TanzaniaB
ZambiaB+
Australia AAA
IndiaBBB-
IndonesiaBB+
PakistanB
PhilippinesBBB
ThailandBBB+
UzbekistanBBB
TurkeyBB+
ChileAA-

Excel 2013 Hangs When Sharing Document as Attachment

$
0
0

When i have any Excel 2013 document open and click on File, Share, Email, Send as Attachment. A blank email opens with the Document attached, if i save the email as a draft Excel will hang/freeze even if when i send off the draft. <o:p></o:p>

I am aware of the hotifx https://support.microsoft.com/kb/2817349 this has been installed and doesnt make any difference. I have tired repairing Microsoft Office and rebooting but doesnt make a difference. Microsft Office 2013 pro is running on Windows 2008 r2 terminal server. 

Event Log Created:

The program EXCEL.EXE version 15.0.4420.1017 stopped interacting with Windows and was closed. To see if more information about the problem is available, check the problem history in the Action Center control panel.
 Process ID: 23c0
 Start Time: 01cfeca45978e7ca
 Termination Time: 0
 Application Path: C:\Program Files\Microsoft Office\Office15\EXCEL.EXE
 Report Id: b876f500-5897-11e4-b87d-005056943393

Has anyone had this issue or know if there is a fix?



Plotting in Excel

$
0
0
I am taking data from pages in my spreadsheet to put in my table to use for plotting.  When I copy the cell in to my table I want the format of the cell to be the same but the sheet or page number to advance on its own.  For example the first cell should be ='0929'!$H$6 and next should be ='0930'!$H$6 but what happens when I copy it is the date(sheet#) stays the same.  Any suggestions?
Viewing all 11829 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>