A short summary of this paper. Iniciar Excel La pantalla inicial La ficha Archivo Las barras La ayuda Introducir datos Modificar datos Tipos de datos Errores en los datos Guardar un libro de trabajo Empezar un nuevo libro de trabajo Abrir un libro de trabajo ya existente Copiar celdas utilizando el Portapapeles Copiar en celdas adyacentes Pegado Especial Eliminar filas duplicadas Ordenar datos Buscar y reemplazar datos Introducir funciones Funciones de fecha y hora Funciones de texto Funciones financieras Otras funciones Controlar errores en funciones Enlazando y consolidando hojas de trabajo Estilos predefinidos Los temas Alto de fila Ancho de columna Cambiar el color a las etiquetas de hoja Ocultar hojas Mostrar hojas ocultas Insertar filas en una hoja Insertar columnas en una hoja Insertar celdas en una hoja Insertar hojas en un libro de trabajo Eliminar filas y columnas de una hoja Eliminar celdas de una hoja Eliminar hojas de un libro de trabajo Insertar captura de pantalla Insertar diagramas con SmartArt Excel se puede utilizar para multitud de cosas, tanto en el plano personal como en el plano profesional.
Desde el icono de Excel del escritorio. Puedes iniciar Excel ahora para ir probando todo lo que te explicamos. Como Abrir, o Guardar como. Cuando creamos un libro nuevo se le asigna el nombre provisional Libro1, hasta que lo guardemos y le demos el nombre que queramos. En ellas se encuentran los distintos botones con las opciones disponibles. Para salir del modo de acceso por teclado vuelve a pulsar la tecla ALT.
La barra de etiquetas Permite movernos por las distintas hojas del libro de trabajo. XLSX para que el ordenador los reconozca como tal.
Es como una gran hoja cuadriculada formada por columnas y 1. Cada columna se nombra por letras, por ejemplo A, B, C, AA, AB, Cada fila se numera desde 1 hasta 1. De igual forma tenemos la fila activa, fila donde se encuentra la celda activa y columna activa, columna de la celda activa.
Empezaremos por utilizar la barra de etiquetas. Para visualizar la hoja anterior a las que estamos visualizando. Para visualizar la hoja siguiente a las que estamos visualizando. Dependiendo del tipo de error puede que Excel nos avise o no. Por ejemplo: se produce cuando el ancho de una columna no es suficiente o cuando se utiliza una fecha o una hora negativa. Existen dos formas de guardar un libro de trabajo: 1. Guardar como. Cuando se guarda un archivo por primera vez, o se guarda una copia de uno existente.
En el recuadro Nombre de archivo, escribe el nombre que quieres ponerle a tu archivo. Se puede cerrar un documento de varias formas. Guardar: Se guardan los cambios y luego se cierra el archivo. Si en la carpeta donde se encuentra el archivo que buscas hay muchos otros archivos, puedes optar por escribir el Nombre de archivo en el recuadro.
Not: Aceasta este o not observa]ie, remarc. Exerci]ii rezolvate: A[a arat un exerci]iu rezolvat. Din suita de aplica]ii de birou Microsoft Office mai fac parte, alturi de Excel: Microsoft Word - editor de text, care poate fi utilizat pentru editarea scrisorilor, referatelor, rapoartelor sau a oricrui fel de document scris; fi[ierul creat de Word se nume[te document [i are implicit extensia.
Microsoft OutLook - program de administrare a informa]iilor de pe suprafa]a de lucru desktop , care poate fi folosit pentru organizarea po[tei electronice sistem de coresponden] folosind calculatorul pentru distribuirea mesajelor , contactelor de afaceri [i fi[ierelor din calculatorul dumneavoastr.
Microsoft FrontPage - aplica]ia permite crearea [i administrarea de pagini sau site-uri Web. Primul disc con]ine aplica]iile mai sus men]ionate. O component important a acestui set de aplica]ii este Small Business Finacial Manager, care permite analiza datelor de afaceri [i generarea de rapoarte financiare u[or de utilizat din Excel.
De asemenea, programul de instalare a fost tradus. Lista complet de op]iuni este afi[at la cerere, prin apsarea unui buton situat la baza fiecrui meniu. Barele de instrumente au suferit, de asemenea, modificri legate de uzabilitate. Sistemul de ajutor folose[te conexiuni de tip hyperlink, fiind u[or de utilizat pentru cei deja familiariza]i cu navigarea pe Internet.
Pe aceast re]ea se deruleaz aplica]ii servicii foarte diverse, dintre care cel mai cunoscut este po[ta electronic. Instruc]iuni privind dotarea [i modalitatea de operare sunt furnizate clientului de ctre ace[ti furnizori de servicii. Acest mecanism de interconecatre permite realizarea unor ierarhii de documente complex structurate. Exist variante de browser pentru aproape toate tipurile de calculatoare. Un tabel este format din linii [i coloane.
Intersec]ia dintre o linie [i o coloan se nume[te celul. De exemplu, biblioteca Dvs. Nu toate celulele trebuiesc completate cu date. Excel pune la dispozi]ia utilizatorului un set de func]ii predefinite, capabile s: - realizeze calcule matematice [i trigonometrice, statistice [i financiare; - s manipuleze informa]ii temporale; - [i altele.
Informa]ia poate fi ordonat sau filtrat dup diverse criterii. Acest procedeu se nume[te instalare. Produsul Excel face parte din suita de aplica]ii Office [i de aceea, procesul de instalare este legat de instalarea Office. Disc accesat prin intermediul re]elei: Deschide]i aplica]ia Network Neigborhood. Not: Dac discul cu kitul de instalare este montat local [i pe calculatorul dumneavoastr este activat caracteristica Auto insert notification, pa[ii anteriori nu mai sunt necesari.
Se recomand instalarea acesteia. Prezentul curs nu trateaz machetele. Prezentul curs nu va trata acest modul. Bifa]i dac dori]i s aprofunda]i ulterior. Exerci]iul Instala]i aplica]ia Excel pe calculatorul Dvs. Acest logo informeaz asupra faptului c Excel este un membru al familiei Microsoft Office, reaminte[te datele de identificare ale copiei instalate [i drepturile de licen] asupra produsului.
Utilizatorul este cel care trebuie s defineasc acest shortcut. Pentru acest lucru, trebuie cunoscut calea ctre aplica]ia Excel. Exerci]iul Crea]i un shortcut pe desktop ctre aplica]ia Excel. Prin deschiderea unui fi[ier cu extensia. Pot fi mai multe aplica]ii care [tiu s gestioneze un anume tip de fi[ier.
Prin urmare, deschiderea unui fi[ier cu extensia. Cum se procedeaz? Pentru a deschide un document Excel, se selecteaz fi[ierul al crei pictograme este. O instalare minimal pentru Excel presupune mcar instalarea fi[ierelor, dintre care Excel. A patra metod pictogram de pe desktop presupune existen]a unei pictograme pe desktop pentru a lansa aplica]ia Excel.
O asemenea pictogram nu se genereaz la instalare, dar poate fi creat ulterior prin mecanismele puse la dispozi]ie de Windows. A cincea metod deschiderea unui fi[ier. Metoda devine disponibil imediat ce ve]i crea un prim fi[ier. Prezentarea mediului de lucru Excel Imediat dup dispari]ia logo-ului de pornirea a aplica]iei Excel, pe ecran apare fereastra aplica]iei. Rolul unui registru este de a permite stocarea [i prelucrarea datelor. Imaginea acestuia pe suportul de stocare permanent hard disk, dischet etc este un fi[ier care are un nume dat de utilizator [i extensia.
Un registru este entitatea cea mai mic Excel care poate fi stocat separat pe un suport permananent. Nu poate fi ob]inut nici un fel de informa]ie referitoare la localizarea acestuia disc, cale. Bara de meniuri: Fig. Bara de meniuri a Excel Bara de meniuri con]ine principalele grupe de op]iuni puse la dispozi]ie de Excel utilizatorului.
Func]ionalit]ile specifice asociate cu op]iunile [i subop]iunile din meniul Excel vor fi prezentate pe parcurs, pe msur ce se va discuta problema asociat. Sub Excel , meniurile sunt auto-configurabile. Sgeata din partea inferioar ne indic faptul c nu toate op]iunile disponibile apar pe ecran. Daca vrem s configurm modul de lucru al meniurilor Excel, selectm din Tools op]iunea Customize.
Revenirea la modul de lucru cu meniuri specific aplica]iilor Office se face tot din Tools —Customize, pagina Options. Activm op]iunea Menu shows recently used commands first. Apsm butonul Close. Se va derula un meniu cu subop]iuni. Pentru activarea subop]iunii selectate se apas tasta Enter.
Chiar aplica]ia My Computer are o asemenea bar. Principalul avantaj al utilizrii butoanelor de pe o asemenea bar de unelte este accesul rapid. Activarea unui buton se face printr-un clic cu mouse-ul desupra imaginii acestuia. Aceasta este o posibil configura]ie a zonei barelor de unelte din Excel. Excel nu face excep]ie de la aceste reguli. Bara de stare a aplica]iei: Aceast zon prezint, pe parcursul lucrului, o serie de informa]ii privind starea mediului Excel [i a documentului curent.
De exemplu, pe bara de stare din Fig. Imaginea acestuia pe suportul de stocare permanenet hard disk, dischet etc este un fi[ier cu nume dat de utilizator [i extensia.
Un registru este format din una sau mai multe foi de lucru. Un registru poate con]ine mai multe foi. O celul poate con]ine valori alfanumerice text , numere, date calendaristice [. Lucrul cu formule este unul dintre cele mai puternice facilit]i ale programelor de calcul tabelar, a[a cum este [i Excel. Acesta con]ine foi, mai multe sau mai pu]ine, dup caz. Dac se particularizeaz registrul printr-un dosar cu [in, devine evident c pot fi adugate sau eliminate foi, dup dorin] [i, mai ales, dup necesitate.
Ptr]elele de foaie sunt celule. Asemnarea cu lumea real se opre[te aici. Celula va purta o denumire format din litera literele de nume ale coloanei, urmat de numrul liniei. Domenii de celule Mai multe celule, alturate sau nu, formeaz un domeniu de celule. Putem spune c o linie este un domeniu orizontal de celule adiacente, iar o coloan este un domeniu vertical de celule adiacente.
Un domeniu dreptunghiular de celule Se define[te un domeniu dreptunghiular ca fiind totalitatea celulelor rezultate din intersec]ia unui numr de coloane adiacente cu un numr de linii adiacente. Cazul imediat urmtor din punct de vedere al complexit]ii este reuniunea de domenii dreptunghiulare, neadiacente. Aceasta va fi denumit pur-[i-simplu domeniu. Un domeniu de celule neadiacente, format din reuniunea a dou domenii dreptunghiulare Regula de denumire este derivat din cea pentru nume de domenii dreptunghiulare [i anume: o list format din numele domeniilor dreptunghiulare reunite, separate prin caracterul , virgul.
Pentru exemplul din Fig. Exerci]iul Privi]i fereastra de aplica]ie deschis pe calculator [i spune]i ce informa]ii referitoare la registrul curent pute]i extrage din aceasta. Rspuns: Rspunsul de mai jos va considera fereastra din Fig. Registru de lucru curent se nume[te Book1. Dintre acestea, Sheet1 este foaia de lucru curent. Cursorul glisant de pe bare determin defilarea grosier, cu mai mul]i pa[i odat. Remarc: Spre deosebire de alte aplica]ii Windows, bara de navigare orizontal a Excel ocup doar o parte implicit, jumtate din l]imea zonei de lucru.
Pozi]ia cursorului glisant Fig. One tab on the ribbon is the Developer tab, where you access the Visual Basic Editor and other developer tools. Because Office does not display the Developer tab by default, you must enable it by using the following procedure:. On the File tab, choose Options to open the Options dialog box.
Under Choose commands from on the left side of the dialog box, select Popular Commands. Under Customize the Ribbon on the right side of the dialog box, select Main Tabs in the drop down list box, and then select the Developer checkbox.
In Office , you displayed the Developer tab by choosing the Office button, choosing Options , and then selecting the Show Developer tab in Ribbon check box in the Popular category of the Options dialog box. After you enable the Developer tab, it is easy to find the Visual Basic and Macros buttons. To protect Office users against viruses and dangerous macro code, you cannot save macro code in a standard Office document that uses a standard file extension.
Instead, you must save the code in a file with a special extension. For example you cannot save macros in a standard Word document with a. When you open a. Examine the settings and options in the Trust Center on all Office applications. The default setting disables macro from running, but warns you that macros have been disabled and gives you the option to turn them back on for that document. You can designate specific folders where macros can run by creating Trusted Locations, Trusted Documents, or Trusted Publishers.
The most portable option is to use Trusted Publishers, which works with digitally signed documents that you distribute. For more information about the security settings in a particular Office application, open the Options dialog box, choose Trust Center , and then choose Trust Center Settings.
Some Office applications, like Outlook, save macros by default in a master template on your local computer. Although that strategy reduces the local security issues on your own computer when you run your own macros, it requires a deployment strategy if you want to distribute your macro.
When you choose the Macro button on the Developer tab, it opens the Macros dialog box, which gives you access to VBA subroutines or macros that you can access from a particular document or application. Another button on the Developer tab in Word and Excel is the Record Macro button, which automatically generates VBA code that can reproduce the actions that you perform in the application.
Record Macro is a terrific tool that you can use to learn more about VBA. Reading the generated code can give you insight into VBA and provide a stable bridge between your knowledge of Office as a user and your knowledge as a programmer.
The only caveat is that the generated code can be confusing because the Macro editor must make some assumptions about your intentions, and those assumptions are not necessarily accurate. Open Excel to a new Workbook and choose the Developer tab in the ribbon. Choose Record Macro and accept all of the default settings in the Record Macro dialog box, including Macro1 as the name of the macro and This Workbook as the location.
Choose OK to begin recording the macro. Note how the button text changes to Stop Recording. Choose that button the instant you complete the actions that you want to record. Choose cell B1 and type the programmer's classic first string: Hello World.
Stop typing and look at the Stop Recording button; it is grayed out because Excel is waiting for you to finish typing the value in the cell. Choose cell B2 to complete the action in cell B1, and then choose Stop Recording. Be aware of the similarities to the earlier code snippet that selected text in cell A1, and the differences. In this code, cell B1 is selected, and then the string "Hello World" is applied to the cell that has been made active.
The quotes around the text specify a string value as opposed to a numeric value. Remember how you chose cell B2 to display the Stop Recording button again? That action shows up as a line of code as well.
The macro recorder records every keystroke. The lines of code that start with an apostrophe and colored green by the editor are comments that explain the code or remind you and other programmers the purpose of the code.
VBA ignores any line, or portion of a line, that begins with a single quote. Writing clear and appropriate comments in your code is an important topic, but that discussion is out of the scope of this article. Subsequent references to this code in the article do not include those four comment lines. When the macro recorder generates the code, it uses a complex algorithm to determine the methods and the properties that you intended. If you do not recognize a given property, there are many resources available to help you.
For example, in the macro that you recorded, the macro recorder generated code that refers to the FormulaR1C1 property. Not sure what that means? Be aware that Application object is implied in all VBA macros. The code that you recorded works with Application. Select FormulaR1C1 in the recorded macro and press F1. The Help system runs a quick search, determines that the appropriate subjects are in the Excel Developer section of the Excel Help, and lists the FormulaR1C1 property.
You can choose the link to read more about the property, but before you do, be aware of the Excel Object Model Reference link near the bottom of the window. Choose the link to view a long list of objects that Excel uses in its object model to describe the Worksheets and their components.
Choose any one of those to see the properties and methods that apply to that particular object, along with cross references to different related options. Many Help entries also have brief code examples that can help you. For example, you can follow the links in the Borders object to see how to set a border in VBA. The Borders code looks different from the recorded macro. One thing that can be confusing with an object model is that there is more than one way to address any given object, cell A1 in this example.
Sometimes the best way to learn programming is to make minor changes to some working code and see what happens as a result. Try it now. Open Macro1 in the Visual Basic Editor and change the code to the following. You do not need to save the code to try it out, so return to the Excel document, choose Macros on the Developer tab, choose Macro1 , and then choose Run.
Cell A1 now contains the text Wow! You just combined macro recording, reading the object model documentation, and simple programming to make a VBA program that does something. The VBA community is very large; a search on the Web can almost always yield an example of VBA code that does something similar to what you want to do. If you cannot find a good example, try to break the task down into smaller units and search on each of those, or try to think of a more common, but similar problem.
Starting with an example can save you hours of time. That does not mean that free and well-thought-out code is on the Web waiting for you to come along. In fact, some of the code that you find might have bugs or mistakes. The idea is that the examples you find online or in VBA documentation give you a head start. Remember that learning programming requires time and thought.
Before you get in a big rush to use another solution to solve your problem, ask yourself whether VBA is the right choice for this problem. Programming can get complex quickly. It is critical, especially as a beginner, that you break the problem down to the smallest possible logical units, then write and test each piece in isolation.
If you have too much code in front of you and you get confused or muddled, stop and set the problem aside. When you come back to the problem, copy out a small piece of the problem into a new module, solve that piece, get the code working, and test it to ensure that it works.
Then move on to the next part. There are two main types of programming errors: syntax errors, which violate the grammatical rules of the programming language, and run-time errors, which look syntactically correct, but fail when VBA attempts to execute the code.
Although they can be frustrating to fix, syntax errors are easy to catch; the Visual Basic Editor beeps and flashes at you if you type a syntax error in your code. For example, string values must be surrounded by double quotes in VBA.
0コメント