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

Calculate Total Inside Power Pivot Data Model

$
0
0

Hi

I have a small sample table, which I have added to the Data Model. I want to add a NEW COLUMN named [Total_value], which is calculated by multiplying 2 columns named [A1] and [B1].

Then I want to do AGGREGATION based on this newly calculated column of [Total_value], in such a manner, that instead of getting the values for each STORES separately, I get just one value for each PRODUCT per state of Texas and Florida.

The Final Result will look something like this, showing only the Aggregate Values, for Each State, for Coca Cola and Pepsi, on each dates.



I am a total newbie in Power Pivot and I have no idea about what method would be best to get the output that I need. I have added a very small sample table, the real table is more then 1000 times bigger then this, therefor it is a must that we make use of the Power Pivot Data Model etc. for doing these calculations, otherwise doing such calculations on the real table by using normal excel column calculations etc. would hang the whole sheet.

Please suggest some ways by which we can get the desired output. And please do not suggest doing it in excel directly, without using Power Pivot Data Model, because that is not practical in my case. I need to take the help of the Data Crunching Power that is available in PPDM, because the data size is HUGE.

If you have any doubts, then please ask them, and I would explain in more details.

I am using the following software versions -
Microsoft SQL Server Management Studio version-  12.0.2000.8,
Microsoft Office 2013 x64
and Windows 7 x64

I have attached the Excel File having the data.

https://1drv.ms/x/s!AggD44w83q49eteplWYTTfCe2y8

Thanks


Cannot understand Count Function

$
0
0

Hi,

I am trying to understand COUNT function in Excel. For the sample in https://support.office.com/en-us/article/COUNT-function-A59CD7FC-B623-4D93-87A4-D23BF411294C?omkt=en-US&ui=en-US&rs=en-US&ad=US

1. Why COUNT(A5:A7) is 2. A5 is TRUE, A6 is "#DIV/0!" and A7 is "Formula". So total count of numbers should be zero.

2. Why COUNT(A2:A7,2) is 4. Total cells from A2 to A7 containing 2 should be 2, not 4.

Thanks

Excel 2010 keeping project open in VBE after closing workbook in application

$
0
0

Since some time, difficult to say when it started, I experience the following issue. After starting Excel 2010 32-bit and working with VBE I close the workbook in Excel. In VBE the project remains listed in VBE's Project Explorer and I continue to see the entire contents and possibly work on it, wouldn't that the file cannot be saved.

When in Excel I press {Ctrl+N} and {Ctrl+F4} repeatedly, new projects appear but not always they disappear. As far as I could understand, if the workbook I am closing is not the last one listed (alphabetically in VBE) then it remains in VBE. Enquiring "Application.Workbooks.Count" returns zero, "Application.VBE.VBProjects.Count" returns non-zero.


If I wait long enough, some of these ghost projects tend to disappear by themselves from VBE, if I'm lucky they all go, as if a time-out releases the resources and allows VBE to close the file for good.

The workbook seems to be released by Excel as I can copy/remove/rename it without any lock warning.

I have disabled all possible Add-Ins (both Excel XLA/XLAM and COM ones) to no avail. I do not have Google Desktop which was mentioned to be a possible culprit. Starting Excel in Safe Mode does not help either. I repaired the installation also without results.

No event traced to Windows Event Log.

When I wanted to remove some of the COM Add-Ins Excel told me I only an administrator can do this. These Add-Ins are from VS2015 (VSTOExcelAdaptor.dll and TSOfficeAdd-in.dll). So I started Excel "As Administrator". Before even removing the VS Add-Ins I tried again and to my surprise the workbook also disappears under the projects in VBE.

I have removed the VS Add-Ins but still the issue is not solved starting Excel regularly. I do not want to work with Excel "As Administrator" so I looking for a solution.

I use Excel 32-bit because I develop with third party components (including Microsoft Common Controls) that are only available as 32-bit. I develop on Excel 2010 because I need I interface and run additional tests on Excel 2013+ SDI.

More details:

I do not have a password protected VBA project. All I do is this:

  • Start Excel 2010
  • Open VBE
  • Close the only open workbook from Excel (Ctrl+F4)

At that point VBE continues to list 'Book1'

If I do this:

  • Start Excel 2010
  • Open VBE
  • Create a number of new workbooks in Excel (Ctrl+N)
  • Close all the workbooks in Excel (Ctrl+F4)

then I end up with the situation above, with a random number of files listed. These are all blank workbooks, no VBA code, no password and never saved either.

If I do this:

  • Start Excel 2010
  • Open VBE
  • Open an existing workbook (Ctrl+O), e.g. 'MyMacros.xlsm'

then the default workbook ('Book1') is closed automatically and only one is listed in VBE. When I close this one, VBE continues to list the existing workbook, and I can see the VBA code.

I also had

  • Team Foundation Add-in
  • Visual Studio Tools for Office Design-Time Adaptor for Excel

as COM Add-Ins but removed them starting Excel "as administrator".

Excel 14.0.7173.5000 32-bit from Office Pro Plus 2010, fully patched.

I started having issues with a password prompt closing Excel last week Friday October 14, for a project that I have as an XLAM Add-In loaded. Windows installed some updates October 13 so the issue could be related.

Story also on "answers<dot>microsoft<dot>com" with same title as this post.

PowerPivot for SharePoint 2013

$
0
0

Hi

I have SQL Server 2014 and SharePoint 2013 installed in two different servers. I installed 'PowerPivot for SharePoint 2013' and Power Pivot confirguration tool in SharePoint server. PowerPivot is not working correctly. Also I tried with installing 'PowerPivot for SharePoint 2013' in SQL Server 2013 server and running spPowerPivot.msi in SharePoint server. It still didn't work. I am not sure where I am not going wrong. Can you please tell me the process to install and configure PowerPivot for SharePoint 2013 when SQL Server 2014 is one server and SharePoint 2013 Farm is in another server?

Errors:

1. Big red cross mark in PowerPivot management dashboard.

2. 'Add this data to the Data Model' in Excel 2013 is not identifying the database and table selected in connection string.

Please help to resolve.

password my excel file?

$
0
0
how do I remove a password on my excel file?

Enable Click on Locked Hyperlinked Cells

$
0
0

Help me out with an option to;

  • Lock and Share a Spreadsheet with only View Access 
  • That contains Active Hyperlinked URLs
  • Option to only click and then the link opens in a browser
  • No Copy, No Save, No Editing but only option to click on the locked sheet url and the link opens in a browser

I want the sheet to be protected in such a way that....my team should not be able to cut,copy,paste,save, etc with the sheet...but only, when they click on the hyperlinks it should work by opening a browser. We handle large data so that's the reason why I am so concerned about the privacy.

Thanks in advance

Compare names in two separate sheets, then highlight the names that are similar or the same

$
0
0

Hello all. I'm trying to compare two different sheets in Excel 2013. Once two similar names or the same name are identified, I want to highlight that information on sheet one.

For example:

Sheet1 has the employee name in Column A formatted LastName FirstName MI. "SMITH  JOHN  E."

Sheet2 has the employee name in Column B formatted LastName FirstName MI "SMITH JOHN E"

Both are the same name, but Sheet1 has an extra space between Smith and John, and it has a period after the MI E.

I tried using conditional formatting:

=COUNTIF(Sheet2!$B$1:$B$500, A1)>0 but it won't highlight it since it has the "." after the middle initial.

I've also tried

=COUNTIF(Sheet2!"*"&$B$1:$B$500&"*", A1)>0 to account of any periods, spaces, etc. but I get an error message saying it isn't a valid formula.

Any help would be appreciated.

Thank you!

Is it possible to build such a application using Microsoft Excel or should I stick to googlesheets?

$
0
0
For a personal project, I am trying to build an application for data collection. This is the idea for the application

1. The user enters data into the spreadsheet template using either an android mobile phone or chrome browser
2. Each week, the user creates a new spreadsheet from the spreadsheet template and uses it for entering the data for that week
3. The application (google spreadsheet currently) then gathers data from multiple spreadsheets created in google drive and enters it into another spreadsheet similar to a dashboard.

Since this is a personal project and I don’t have a lot of time to learn a lot different languages, I am trying to figure out whether it is possible to implement this using Microsoft office excel and its online version (excel online). I have implemented a simpler version of this in google spreadsheet, and I think this is possible to do using google spreadsheet.

However, the sheets have got complex enough that I think I have to start reading up on the google drive API etc.

At work, I am already learning about VBA and excel. So I am wondering if I can just stick to excel and VBA and accomplish this. I think this would have been definitely possible if I was just entering data using my laptop. However, I am wonder if excel online has the functionality to gather data from multiple “Excel online” spreadsheets in a similar fashion as that of google spreadsheets.

Thanks for your help

Jeff

Cube Formula Filtered by Date Range

$
0
0

I am trying to filter a cube formula by date range.

I have the following cubeset:

=CUBESET("ThisWorkbookDataModel","FILTER([BasicCalendarUS].[DateKey].Members, NOT ISEMPTY({[BasicCalendarUS].[DateKey].[10/1/2016]:[BasicCalendarUS].[DateKey].[10/31/2016]}))", "New")


The CUBESETCOUNT() returns 672, instead of 31. So something is awry.

While I'd like to know how to get this formula working, my ultimate desire is to have the formula filter from 10/01/2016 - Present. I've come up with this formula:

=CUBESET("ThisWorkbookDataModel","FILTER([BasicCalendarUS].[DateKey].Members, [BasicCalendarUS].[DateKey].CurrentMember.Value > =DATE(2016,10,01))", "New")

but it returns #N/A.

So I am at a loss. I don't know where to turn, or what book to look into for MDX in cube formula help.

Thanks,

Andy

Worksheet Protection

$
0
0
I have the same issue of trying to remove a password protected Excel spreadsheet and have selected the review tab and went through the process of unprotecting my work sheet. It now shows that the sheet is unprotected yet when I saved and reopened the worksheet; it still requires my password to open it.

Conditional formatting

$
0
0

Hi everybody,

I am working in some percentage values that I would to show with progress bar.

I just hope I will able to articulate this , here goes, I want to show a gradient coloured bar

that changes colour as the number goes up. For example, from 1 -40 the progress bar can be  gradient red and from 50-100 can be a gradient green colour. I can only do it with one colour when I create a second rule  to be applied in the  same cell only one rule is applied. I cannot the two rules to work on the same cell hence I am not getting the two colours

T

 


Kassoka

Excell 2013 (365) Scroll Wheel Disabled due to Power Query

$
0
0

Opening the Power Query Workbook Queries Pane within Excel results in a loss of scroll wheel functionality.  You can temporarily remedy this by clicking out of excel and then back in.  However, upon closing and opening the pane within excel the scroll wheel issue will represent itself.

Does anyone have a solution to this issue?  Is it a known bug?

Excel crash when adjusting margins in Print Preview Full Screen

$
0
0


1. Start new workbook in Excel. (No other apps running)
2. type in a value in a cell. (not needed to reproduce error)
3. Set print area. (not needed to reproduce error)
4. go to "Print Preview Full Screen" e.g. using the icon in the Quick Access Toolbar
5. tick "Show Margins"
6. left click left margin to adjust.
7. Excel crashes.

Seen on :
 - Windows 10 1607 build 143930.0,  Excel version 16.0.7167.2040
 - Windows 10 1511 build 10586.545, Excel version 16.0.7167.2040

Have tried :
 - Numerous spreadsheets
 - uninstalling and reinstalling Office 365 latest version
 - PC rebuild woth latest Windows 10 version
 - Changing default printer

Workaround :
1. CTRL+P to print.
2. scroll to bottom right and click the show margins button
3. margins can be adjusted without crashing Excel.

Distorted cell display in Excel 2010 – scroll away & back fixes it?

$
0
0

I have seen this problem on more than one of my clients computers. The problem is the display of an Excel cell is wrong/distorted. Scrolling so that cell is off-screen (out of site) and scrolling back to it fixes it.

 

I’ve seen this in two situations: when a user performs a paste operation, cells (or even whole rows) appear distorted with the formatting totally off (for example, it adds a bunch of extra space under the row or something). I know the user was using the right Paste option, and scrolling away from the row/cell and scrolling back to it fixes it.

 

The second situation I’ve seen this is when a user enters information into Excel cells and the text wraps around in a cell. The rows below where the user is entering information distorts visually. Again, scrolling away from the row/cell and scrolling back to it fixes it.

 

Any idea what is causing this, and if there is any way to fix it? Again, functionality remains, just visually cells and/or rows get distorted & one fix for it is to take that cell/row out of site by scrolling away from it and scrolling back.

 

Thanks,

Elizabeth

Excel and New Voices from Microsoft Speech Platform - Runtime Version 11

$
0
0

I have added:

Microsoft Speech Platform - Runtime Version (11) x64
Microsoft Speech Platform - Software Development Kit (SDK) V11 and voices from x64 (I had this in but removed it)
Microsoft Speech Platform - Runtime Languages (v11) (Trying to get one new voice in)

I modified the registry for the runtime languages to place in /speech/ rather than /speech server/v11/

I added voice in Control Panel and was able to change the default voice.  The new voice speaks there, but it won't work in Excel (Office 365 Home).  If I try use TTS in Excel I get Runtime Error 429 - ActiveX Component can't create object.

I am running Windows 7 Pro 64bit.  I am working with Office 365 Home 32 bit.

I appreciate your help.  I am a novice when it comes to programming.  If I am in the wrong discussion group I apologize.

I have been working on this for a couple of weeks.  Any suggestions on how I can get Office - Excel to work with the new voices?


excel: calculate conditional standard deviation (align with year and company)

$
0
0

Dear all,

I need some help!!! I have over 75,000 observations and so, cannot do this manually. I need to calculate the monthly standard deviation of a company in a given year, however, the observations range from 2007-2015 and obviously, several companies are included. The basic excel spreadsheet could be described as follows:

A                              B                            C

company ID             year                       monthly return

For instance, 'company abc' has in each year (2007,2008...) 12 monthly return observations. Therefore, the STDEV formula should be applied only if the company and year matches otherwise a new calculation should start.

I thought about many ways with some kind of STDEV,IF,STDEV.S,IF.S.... combinations, however, I do not succeed.

Would be great if anyone can help me out with this :) 


Sandra

Slicers and Displayed names?

$
0
0

Im new to working with slicers and currently inherited a dashboard that i was not involved in creating. currently i have two of the buttons reporting incorrect data (they need to be swapped). My question is, is it possible to swap the two names? or what is the most efficient way to swap the data without starting from scratch?

Please keep in mind i am quite new to this process, and i am used to using VBA to manage everything (no VBA was used to create any of this so i have no code streams to look at)

Any input would be greatly appreciated.

Thank you in advance for any assistance.

Facing problem in opening excel file .xlsm with office 365 + windows 10

$
0
0

Hi

I am using windows 10 with office 365 from last one year with genuine subscription, But from last one week i am not able to open excel file (,xlsm) recvd from mail , during click the editing button and then enable content my laptop goes hangs and can't able to click other buttons on that file. But before one week i am well working on this file by doing same process. Also my old saved file not working, otherwise excel normal file well well and other format of excel too. Number of time i have download same file but can't work. 

Pls help me , i am suffer a lot with problem.

trying to download invoice in excell

$
0
0

i have made ;up a invoice in templet and trying to print it and will not print

PowerPivot is unable to load the Data Model.

$
0
0

I'm taking aan edX course on Excel and the Lab 2 problem says to click on the POWERPIVOT than manage and a data model should open....but it doesn't.

I have Excel 2016 windows 7.

I've used data models before and no problems and on another computer t the data model opened.

Is there a bug? I spent 12 hours today trying to fix it.

Viewing all 11829 articles
Browse latest View live


Latest Images

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