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

Solver - Speed Differences Between Excel Versions

$
0
0

Hi - I am wondering if there is any difference in the processing speed of Solver as between 2010/2016/2019/365 versions of Excel - in particular, whether (1) newer versions of Solver will benefit from increased core and hyper-threading chip architecture, and (2) 365 will operate slower than 2019 due to increased server communication.  Does anyone know?

 

I am optimizing multi-variable non-convex non-smooth problems, which currently take several days using the Solver Evolution engine - so every small improvement in speed I can get will help!

 

Thanks!


Excel 2010, Column A will not appear

$
0
0

I have a file that was an .xls file, then upgraded to xlsx with 2010.  I have tried all of the below on both version of the file.

I can't get "Column A" to show.  I have used the select to the left to unhide and have set the column width.  I don't know how to fix this.

 

In terms of impact, it is would not be a problem if  I could select all and copy to a new sheet, then delete the old sheet, rename the new one and all the references will work.  But the references don't work in the same workbook.  Is there a way to globally change the "links" as if it was another workbook?

 

It is just weird I can't get it to show.....?

 

Thanks for any info,

 

PS I fixed it, but I didn't do anything special.  I closed the file, reopened it.  Copied a bunch of stuff around.  That didn't work, then I used undo a few times and presto, column a reappeared at 15 width which is were I set it before.  I have no idea what happened or why.


 

 


JS

Consecutive Finishes

$
0
0

In Excel 365 I have a table called Results which contains the following columns and sample data:

Date --------- Player -- Result

01/01/2019 - Danny -- 1st

01/01/2019 - Craig -- 2nd

01/01/2019 - Alex -- 3rd

01/01/2019 - James -- LOW

08/01/2019 - James -- 1st

08/01/2019 - Alex --- 2nd

08/01/2019 - Katie -- LOW

08/01/2019 - Danny - LOW

15/01/2019 - Craig -- 1st

15/01/2019 - Katie -- 2nd

15/01/2019 - Alex -- 3rd

15/01/2019 - James -- LOW

What I want is to work out somebody's consecutive finishes in a 4th column. I want to differentiate between a run of consecutive finishes in the top 7, or consecutive finishes outside the top 7. The player is in the top 7 if the left 3 characters of the 3rd column are "1st", "2nd" ... "7th". The player is not in the top 7 if the left 3 characters are "LOW" or "FIR". For each consecutive top 7 finish, their score must increment by 1, but for a non top 7 finish their score will go to -1 and decrement by one (until they finish in the top 7).

Looking at the sample data above, the players would have the following consecutive finishes:

In date order - i.e. 1st then 8th then 15th:

Danny: 1, -1 (Danny was in the top 7, then outside the top 7, then he didn't play so his consecutive run is unaffected)

Craig: 1, 2 (Craig didn't play on the 8th, but the 2 times he did play he finished in the top 7, so his top 7 run increments)

James: -1, 1, -1 (James was not top 7, then top 7, then not top 7)

Katie: -1, 1

Alex: 1, 2, 3

I've performed a similar formula but the data was set out differently - I need the data in a table format but whereas previously I was  comparing adjacent cells I no longer have this option. Any help much appreciated. Thanks.

Copy CELL's in Excel only if colored

$
0
0

Hi

I want to copy a CELL from one excel sheet A (file) to another Excel sheet B in another file but only if the CELL is colored (any color). 

If the CELL is colored, I want to copy BOTH the color and the text in the cell. If possible also any notes on the cell.

My sheet A is with approx. 200 columns and 200 rows and I want some automatic that searches the sheet for colored CELL's and copy them to another similar sheet B. All CELL's in sheet A without a color shall not be copied even though it may have some text.

So if CELL A1, C1, D1 in sheet A is colored (and maybe have som text in it), it shall be copied to CELL A1, C1, D1 in sheet B.

If CELL B1 in sheet A is NOT colored but have som text in it, it shall NOT be copied to CELL B1 in sheet B.

Can anyone please help





Excel Fonts will be changed automatically

$
0
0

Hi,

I edit a file with Calibri on Office Standrad 2010 , when I open it on another desktop, all the words will change to PMingLiU.

Is it a bug on excel?

having trouble with using solver through vba.

$
0
0
Hi im having trouble with solver when i want a optimazation through solver and vba codes

Actually it works ok when i push the button in data tap, and solver button.
But it does make an error when i want to call solver in vba.

the error is called
"Solver: An unexpected internal error occurred, or available memory was exhausted."

and occurs when the code tries to add binary constrains.
=====================================================
    Range("U37:V46").Select
    Selection.FormulaR1C1 = "0"
    SolverReset
    
    SolverOk SetCell:="$Z$44", MaxMinVal:=2, ValueOf:=0, ByChange:="$U$37:$V$46", _
        Engine:=1, EngineDesc:="GRG Nonlinear"
    SolverAdd CellRef:="$Y$37:$Y$46", Relation:=2, FormulaText:="1"

    
    SolverOk SetCell:="$Z$44", MaxMinVal:=2, ValueOf:=0, ByChange:="$U$37:$V$46", _
        Engine:=1, EngineDesc:="GRG Nonlinear"
    SolverAdd CellRef:="$Z$37:$AA$41", Relation:=2, FormulaText:="1"

    
    SolverOk SetCell:="$Z$44", MaxMinVal:=2, ValueOf:=0, ByChange:="$U$37:$V$46", _
        Engine:=1, EngineDesc:="GRG Nonlinear"



    SolverAdd CellRef:="$Z$42:$AA$42", Relation:=2, FormulaText:="5"
    

    SolverOk SetCell:="$Z$44", MaxMinVal:=2, ValueOf:=0, ByChange:="$U$37:$V$46", _
        Engine:=1, EngineDesc:="GRG Nonlinear"
    MsgBox ("1")
    
 
    
    SolverAdd CellRef:="$U$37:$V$46", Relation:=5, FormulaText:="2진수"//occurs an error "2진수" means "binary"
    

    SolverOk SetCell:="$Z$44", MaxMinVal:=2, ValueOf:=0, ByChange:="$U$37:$V$46", _
        Engine:=1, EngineDesc:="GRG Nonlinear"
        

    SolverOk SetCell:="$Z$44", MaxMinVal:=2, ValueOf:=0, ByChange:="$U$37:$V$46", _
        Engine:=1, EngineDesc:="GRG Nonlinear"
    solversolve
        MsgBox ("7")
    solversolve UserFinish:=True
    SolverFinish KeepFinal:=1

========================================================

I tried to find a solution for this for a week.
here is what i did for solving problem.

i checked solver is installed ok. and the reference is also ok.

1. try to add "application.run" above the codes.
it didnt work.

2. reparing office 2016.
it didnt work.

3. re-installing office 2016.
it didnt work.

4. I send some mails to "Frontline System" since "solver" is a third-party app not Microsoft app now.
And they suggested re-installing and cutting/pasting "meta data" located  C:\Users\<user name>\AppData\Roaming\Microsft\Excel
and reopening excel and try the macro again.

but it didnt work either.
and they said unfortunately that i would need to contact the Microsoft Help Desk but i couldnt get support since i am personal user and the issue is about developing.

Any advice will help me a lot. 

MS Query wizard in Microsoft Excel 365 Pro plus

$
0
0

Hi Everyone

I am having an issue in when running the when running the Microsoft Query wizard. When opening the query table and start running the wizard, the right hand side column gets cut in half. There is no scroll as well as that is also cut off. I have tried changing multiple settings in Windows, MS Access, and Excel without any luck. This is only happening on one Pc. Any suggestions would be great. :)

Recovery of my Password on Excel Workbook

$
0
0

Hi, Since April I am using one excel sheet with data. The file was password protected. Now I this year in office we have PMP and I required the file to present. But while entering the Password it is not opening. Please help me in recovering the file. Its very Important.

Regards,

Ramesh Jaiswal


office add-ins change pivottable name error

$
0
0

when change pivotTable.dataHierarchies  name , excel closed and nothing message throw.

the javascript i use

 <script src="https://ajax.aspnetcdn.com/ajax/jQuery/jquery-3.3.1.min.js" type="text/javascript"></script>

    <script src="https://appsforoffice.microsoft.com/lib/1/hosted/office.js" type="text/javascript"></script>

    <script src="https://unpkg.com/core-js@2.4.1/client/core.min.js" type="text/javascript"></script>

my code belown

Excel.run(function (context) {


            const pivot = context.workbook.worksheets.getItem("WeeklyDataPivot").getRange("B20");

            context.workbook.worksheets.getItem("WeeklyDataPivot").pivotTables.add("SecondPivot", "weeklyDataTable", pivot);

            return context.sync().then(function () {
                const pivotTable = context.workbook.worksheets.getItem("WeeklyDataPivot").pivotTables.getItem("SecondPivot");
                return context.sync().then(function () {
                    pivotTable.rowHierarchies.add(pivotTable.hierarchies.getItem("ReportDate"));
                    pivotTable.dataHierarchies.add(pivotTable.hierarchies.getItem("Spends"));
                    pivotTable.dataHierarchies.add(pivotTable.hierarchies.getItem("sales"));
                    pivotTable.dataHierarchies.add(pivotTable.hierarchies.getItem("Spends_Prior"));
                    pivotTable.dataHierarchies.add(pivotTable.hierarchies.getItem("Sales_Prior"));
                    pivotTable.dataHierarchies.add(pivotTable.hierarchies.getItem("Impressions"));
                    pivotTable.dataHierarchies.add(pivotTable.hierarchies.getItem("Clicks"));
                    pivotTable.dataHierarchies.add(pivotTable.hierarchies.getItem("Clicks_Prior"));
                    pivotTable.dataHierarchies.add(pivotTable.hierarchies.getItem("Impr_Prior"));

                    pivotTable.dataHierarchies.load("no-properties-needed");
                    return context.sync().then(function () {
                        pivotTable.dataHierarchies.items[0].name = "Spends ";
                        pivotTable.dataHierarchies.items[1].name = "sales ";
                        pivotTable.dataHierarchies.items[2].name = "Spends_Prior ";
                        pivotTable.dataHierarchies.items[3].name = "Sales_Prior ";
                        pivotTable.dataHierarchies.items[4].name = "Impressions ";
                        pivotTable.dataHierarchies.items[5].name = "Clicks ";
                        pivotTable.dataHierarchies.items[6].name = "Clicks_Prior ";
                        pivotTable.dataHierarchies.items[7].name = "Impr_Prior ";

                        return context.sync();
                    });
                });
            });

        }).catch(function (error) {
            console.error(error);
        });

Excel 2016 Solver error message (Windows 10)

$
0
0

I am using Microsoft Office 365 from my school. I am currently facing a problem with installing Solver. I have already done the steps to add in Solver, but I am unable to use this function. This error message keeps appearing: "Cannot run the macro 'SOLVER.XLAM!GetSolverLabel'.

I have tried removing and adding in Solver again, even restarting my laptop, but to no avail.

Here is another error message that happens when I close Excel. The Solver add-in is actually under the Data Analysis function, but the word "Solver" is not appearing, and the whole function does not work.

My laptop is ASUS UX303UA and I am using Windows 10.

I urgently need to use this function for school work and I would be extremely grateful if someone can help me. Thank you.


office add-ins can not create a shape

$
0
0

sheet.shapes display undefined

Excel.run(async (context) => { const sheet = context.workbook.worksheets.getItem("Shapes");const shape = sheet.shapes.addGeometricShape(Excel.GeometricShapeType.smileyFace); shape.left =300; shape.top = 100; shape.height = 100; shape.width = 100; shape.fill.foreColor = "yellow"context.sync(); });

i using the javascript is

 <script src="https://ajax.aspnetcdn.com/ajax/jQuery/jquery-3.3.1.min.js" type="text/javascript"></script>
    <script src="https://appsforoffice.microsoft.com/lib/1/hosted/office.js" type="text/javascript"></script>


Trying to display a screen without access to sharepoint

$
0
0

Hey guys, help on this would be appreciated.

essentially, im usually tasked to setting up the screens in the monring so that it displays our progress. Recently, our project co-ordinator asked if she can display an excel file on there the screens this itself is not the issue, the problem is that because im having to sign in to gain access the excel, it also open doors to everything else within the company on our sharepoint. So anyone with the mouse and keyboard can easily do a couple of clicks to access private files...and i cant download the file because the co-ordinators makes changes to the file as time progresses.

I could do the simple thing of just hiding the mouse and keyboard and such, but it would be better if I can just somehow block access to the sharepoint.   

I cant create a new acc as it was will involve cost which is something we dont need
I cant download because the file needs to be a live for changes over the next couple of weeks.
I cant email the excel to a external email acc as there is a time limit on how long the link is shareable.
Because the screen's are running from Xen desktop, I was thinking of maybe placing a image of the link to the excel file, but i think it still requires a sign in. 

help is appreciated

Empty field if IF-formula is FALSE

$
0
0

All pixels are 16px wide and high.

A2 is formated as date: dd-mm and has the value 01-01-2019.

A1 is formated as date: yyyy and has the formula: =IF(DAY(A2)=1;A2). The result of A1 is "2019".

B2 is formated as date: dd-mm and has the formula: =A2+1.

B1 is formated as date: yyyy and has the formula: =IF(DAY(B2)=1;B2). The result is and 'empty 'cell'.

My issue is that A1 is only showing '20', because B1 is not REALLY EMPTY.

I tried to change the 'date' to text: =IF(DAY(A2)=1;TEXT(A2;"yyyy");). Another attempt was: =IFERROR(IF(DAY(D4)=1;TEXT(D4;"jjjj",NA()));), but in the end this result was the same.

How to solve that I get A1 to fully show 2019, instead of 20? I don't want to use the 'fill' option, whereby the font-size shrinks.

I am on a beginners level of Excel and surfed the internet to find a solution.

An Unexpected error has occurred. AutoRecover has been disabled for this session of Excel.

$
0
0
Had this issue using Windows 7 and Excel 32 bit 2010.  I had 3 workbooks open that were created from a consultant.  I had the problem when they were on SharePoint 2010 and shared, but this also happened when I saved all 3 workbooks to my hard drive.  This only seems to happen using workbooks received from this one consultant using Excel 2010 workbooks.  It doesn't seem to happen with previous versions of Excel.  Any idea why this is happening?  It's not just me having this issue at my company, but again we just started experiencing these problems within the past few months when this consultant started sending workbooks in 2010. 

How do I get rid of the people graph, there is no X?

$
0
0

I'm in Excel 2013 and thought I check out what this people graph does. And now I can't get rid of it. Clicking it again thinking the button worked like a show\hide option just creates another graph window. Why after 20 some years of GUI development have apps become so unintuitive.

You know what happens if you insert a chart, you get a nice big obvious in the top right corner.

If you go to power map and add a legend, that's right, you get an X in the top right corner.

And yes, this is probably in the wrong forum. But once again there is no intuitive way to get a list of forums from this page. And you can't climb the cookie tree either. That just takes you to a list of posts in all the forums. Smart thing would be to have an option in Quick access to take me to the parent forum and list all the forums.




Using Tab Names to populate cells on a different Tab

$
0
0

When I use the formula:

=MID(CELL("filename",A1),FIND("]",CELL("filename",A1

I can pull the Tab Name into a specific cell on that current tab.  What I need to know is, how can I insert that Tab Name into a cell on a different worksheet(s)?  I can only find the formula for using the tab name in a cell in the current tab itself.  Please help!  Thanks!!!

Unable to open non-Office formats from File-Open Menu in Window 2016

$
0
0

I'm trying to open up a text file in Excel or Word.

Previously I'm sure the Open window allowed you to chose only Word or ALL file formats, but I can't see how to do that in Windows 16.

Can I access the file from within Word?

Also - I've tied opening up the file through "Open With" from Windows Explorer - but can see how to navigate to Word / Excel from their either!

Power Pivot - The option get external data from Other Sources is not working

$
0
0
Power Pivot, the option get external data from other sources is not working. Clicking the "From Other sources" button does nothing. The other options work normally. This button has worked previously, today that started this problem. Can someone help us?

Powerpivot stuck at loading data model

$
0
0
On our Windows 10 Enterprise systems with Office 2016 Pro Plus, PowerPivot will not start. The add-in is enabled and clicking on the Manage icon causes the loading data model to hang until Excel is closed.  Once closed, Excel presents an error message"PowerPivot is unable to load the data model".  These are domain joined systems and the Office 2016 ADMX settings have been applied to them.  I created an OEM system with Office 2016 that is off domain and PowerPivot starts correctly on it.  I can't seem to find any log files that might indicate where the issue is stemming from.   Would anyone have any ideas on how to proceed with troubleshooting?

Data query error

$
0
0

I had an EXCEL file that connects to SQL database and was working until one week ago.

Now gives me this error.

"An error happened while reading data from the provider: 'Could not load file or assembly 'System.EnterpriseServices, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. Either a required impersonation level was not provided, or the provided impersonation level is invalid. (Exception from HRESULT: 0x80070542)'"

Viewing all 11829 articles
Browse latest View live


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