Excel common functions (continuously updated)

1: Press and hold the start icon and R on the computer keyboard at the same time
2: Bring up the run box, enter "osk" in the input box, and press Enter to directly call out the full keyboard

  • VLOOKUP is displayed as #N/A (not found) modified to empty
    1.if(isna(vlookup()), “”, vlookup() )
    2.if(iserror(vlookup()), “”, vlookup() )
    3.iferror(vlookup(), "")
  • VLOOKUP is displayed as 0 (found empty) modified to empty
    vlookup()&""
  • VLOOKUP is displayed as #N/A and all 0 are changed to empty
    if(iserror(vlookup()), "", vlookup()&"")
  • Delete the formula and keep the calculated value
    Copy -> Paste as value
  • Remove Duplicates
    Data -> Remove Duplicates
  • Delete blank lines
    Remove duplicates, and then delete a blank line
  • Convert case
    to uppercase: function upper
    to lowercase: function lower
  • Returns the number of non-empty data
    counta returns the number of non-empty cells in the range
  • Returns the number of empty cells
    countblank returns the number of empty cells in the range
  • Returns the number of numbers
    count returns the number of empty cells in the range
  • The fixed range remains unchanged.
    Use the $ symbol, for example, A2:A5 is changed to A$2:A$5
  • The date format changes to 5 digits after vlookup (the number represents the number of days since January 1, 1900) the
    text function converts it into a date, text(a1,"yyyy-mm-dd")
    the text function converts it into a date, text (a1,"yyyymmdd")
  • Convert the yyyymmdd string to the yyyy-mm-dd string
    text(a1,"0000-00-00")
  • Return the specified number of characters
    Return 10 characters from the left, left(a1,10)
    return 10 characters from the right, right(a1,10)
  • Open the csv format directly and turn it into scientific notation.
    Open Notepad to check whether the data is normal, import data into Excel, and select the delimiter
  • Text Merge
    1. Merge with &: a1&b1
    2. Use the concat() function
  • Text interception
    mid (cell, starting position, number of intercepted digits)
  • Select the cell with content
    ctrl + shift + ⬆️/⬇️/⬅️/➡️
  • Paste only visible cells
    alt + ; select visible cells, then ctrl + c, ctrl + v
  • Determine whether a data is in a column of data
    countif (certain columns, a data)
  • Rows/
    Columns Rows: row()
    Columns: column()
  • The match function
    match(lookup value, a certain column, 0) returns the row in which the lookup value is in a certain column
    match(lookup value, a row, 0) returns the row in which the lookup value is in a row
  • Calculate age
    DATEDIF(start date, TODAY(), "Y")
    "Y", "M", "D" return year, month, day respectively
  • SUMIF(a certain
    column, x, summation area)
    can add the value of a certain column equal to the summation area corresponding to x
    SUMIF (a certain column, "*B*", summation area)
    can add a certain A column containing the values ​​of the summation area corresponding to B is summed
    SUMIF(a column, "<>", summation area)
    can add the values ​​of a column of non-empty cells corresponding to the summation area
    SUMIF(a column, ">5 ", summation area) can add the summation
    area values ​​corresponding to the cells in a column greater than 5 Add SUMIF (a column, ">"&B1, sum area) can add a column greater than the sum area corresponding to B1



  • The sum of data that meets multiple conditions
    SUM (SUMIF (a column, {"A", "B", "C"}, summation area))
    can equal a certain column to the summation area corresponding to A or B or C Value addition
    SUM (SUMIFS (summation area, column 1, condition 1, column 2, condition 2))
    Add the value of the sum area where column 1 satisfies condition 1 and column 2 satisfies condition 2 The sum area
    can be offset Select multiple columns: offset (reference column, {1,2}) is the two columns to the right of the reference column
  • Transpose operations
    Copy-Paste Special-Transpose
  • Swap the position of two columns,
    press and hold shift to select the side of a column and then move it (do not press shift to replace directly)
  • Display the array
    Select the number of cells corresponding to the array (several rows and columns), press F2 to enter the formula, and press Ctrl+Shift+Enter
  • OFFSET function
    OFFSET(Original area, offset a few rows (positive down negative top), offset a few columns (positive right negative negative left), expand to a few rows, expand to a few columns), the return is an array combined with other functions can be
    realized Dynamic cells, dynamic changes in charts, refer to http://xinzhi.wenda.so.com/m/a/1521424221207903
  • The chart only shows data labels for max/min etc.
    A helper column is needed and added to the chart. For example, if column B is a data column, the formula of the auxiliary column in column C is: C2=if(B2=max(data column),B2,na()) so that the auxiliary column will only display the number at the maximum value, and other cells An error value is displayed. After the auxiliary column is added to the chart, only the data point with the maximum value will be displayed, and the data point display style, data mark, etc. can be adjusted as needed.
  • Judging the date is the day of the week
    weekday(date, 2)
  • Get the date corresponding to the date at the end of last month and the beginning of last month. At the beginning of last month
    : date(year(date), month(date)-1, 1)
    At the end of last month: date(year(date), month(date), 0) At the
    beginning of this month: date (year(date), month(date), 1)
    at the end of this month: date(year(date), month(date)+1, 0)
  • The formula is converted into text
    ctrl+~ can be displayed as a formula, and then the content of a certain part of the formula can be replaced in batches
  • Change the color of the row and column of the selected
    cell View - Reading Mode
  • Most of the reasons why vlookup can’t find it is because the format is different.
    Use value to text or text to number to find it later
  • Value to text
    cell & ""
  • Text to number
    value (cell)
    cell * 1
    cell + 0
  • The countif function will only judge the first 15 digits, so there will be cases where countif cannot be reached by vlookup
    countif(area, cell & "*")
  • Count a column
    countif(area, cell & "*")
  • Round to keep two digits
    round(cell, 2)
  • Grouping to find the maximum/minimum value
    MAXIFS(maximum/minimum value area, column 1, condition 1)

Guess you like

Origin blog.csdn.net/qq_33218097/article/details/108442376