{"id":4519,"date":"2019-08-05T14:28:06","date_gmt":"2019-08-05T14:28:06","guid":{"rendered":"http:\/\/officetuts.net\/excel\/?p=4519"},"modified":"2024-02-19T15:10:17","modified_gmt":"2024-02-19T15:10:17","slug":"if-then-else","status":"publish","type":"post","link":"https:\/\/officetuts.net\/excel\/vba\/if-then-else\/","title":{"rendered":"VBA If Then Else (complete guide)"},"content":{"rendered":"\n

Sometimes you don\u2019t want every part of your code to be executed as you run your macro. In almost every computer language. In VBA, you can find IF .. ELSEIF .. ELSE<\/strong> statement or SELECT .. CASE<\/strong>.<\/p>\n\n\n\n

In this lesson, I\u2019ll show you how you can use the IF statement in VBA.<\/p>\n\n\n\n

If .. Then<\/h2>\n\n\n\n

You can use the If<\/strong> statement if you want to check a condition and execute that part of the code only if the condition is met. You can close the If<\/strong> statement with an End If<\/strong> line.<\/p>\n\n\n\n

Sub SingleIf()\n    Dim age As Integer\n    age = 18\n    \n    If age >= 18 Then\n        MsgBox \"This person is an adult\"\n    End If\nEnd Sub<\/code><\/pre>\n\n\n\n

The condition (age >= 18) is met therefore the code between If<\/strong> and End If<\/strong> is executed and the message is displayed.<\/p>\n\n\n\n

\"\"<\/figure>\n\n\n\n

If you change the age<\/strong>\nvariable to a number smaller than 18, Excel will check the condition, and\nbecause the condition is not met it won\u2019t do anything.<\/p>\n\n\n\n

A single line IF<\/h3>\n\n\n\n

In the previous example, I showed you that you have to end\nyour if statement with the End If<\/strong>\nline. That\u2019s true unless you write your statement inside a single line.<\/p>\n\n\n\n

Let\u2019s modify our example a bit.<\/p>\n\n\n\n

Sub SingleLineIf()\n    Dim age As Integer\n    age = 18\n    \n    If age >= 18 Then MsgBox \"This person is an adult\"\nEnd Sub<\/code><\/pre>\n\n\n\n

Single line statement can be more readable if you use\nmultiple Ifs<\/strong><\/a> with a short single\nline code to execute.<\/p>\n\n\n\n

Multiple Ifs<\/h2>\n\n\n\n

You can use multiple Ifs<\/strong> if you want to execute multiple parts of code, and each If<\/strong> has to be closed with End If<\/strong>. Here\u2019s what I mean.<\/p>\n\n\n\n

Sub MultipleIfs()\n    Dim age As Integer\n    age = 77\n    \n    If age >= 18 Then\n        MsgBox \"This person is an adult\"\n    End If\n    If age >= 65 Then\n        MsgBox \"This person is a retiree\"\n    End If\nEnd Sub<\/code><\/pre>\n\n\n\n

In this case, both conditions are met, therefore Excel will display both messages. If you have multiple Ifs<\/strong>, it\u2019s a good idea to use the SELECT .. CASE<\/strong> statement.<\/p>\n\n\n\n

If .. Then .. Else<\/h2>\n\n\n\n

The If<\/strong> statement\nallows us to check a single condition. If the condition is met (returns TRUE<\/strong>), the particular code is executed.<\/p>\n\n\n\n

But what if the statement returns FALSE<\/strong> and, in this case, you want to execute a different part of a code?<\/p>\n\n\n\n

In this case, you can use ELSE<\/strong> statement. This part of code will execute if the condition is not met. Let\u2019s take a look.<\/p>\n\n\n\n

Sub IfElse()\n    Dim age As Integer\n    age = 16\n    \n    If age >= 18 Then\n        MsgBox \"This person is an adult\"\n    Else\n        MsgBox \"This person is not an adult\"\n    End If\nEnd Sub<\/code><\/pre>\n\n\n\n

Excel checks whether the condition is met. In our case, 16 >= 18 returns FALSE<\/strong>, therefore program will execute code that is inside the Else<\/strong> statement.<\/p>\n\n\n\n

\"\"<\/figure>\n\n\n\n

If .. Then .. ElseIf<\/h2>\n\n\n\n

So far you\u2019ve learned about If<\/strong> and Else<\/strong>. In this\npart, you are going to learn about ElseIf<\/strong>,\nwhich allows creating more complicated conditions. <\/p>\n\n\n\n

It works in the following way. First Excel checks the If<\/strong> condition. If the condition is not\nmet (and only then) it checks the ElseIf\n<\/strong>condition. If the condition is still not met, it returns the Else<\/strong> statement. You can use multiple ElseIf<\/strong> statements, but only a single If<\/strong> or Else<\/strong> in a single if statement.<\/p>\n\n\n\n

Let\u2019s find out using the following example.<\/p>\n\n\n\n

Sub IfElseIfElse()\n    Dim age As Integer\n    age = 11\n    \n    If age < 18 Then\n        MsgBox \"This person is underage\"\n    ElseIf age >= 65 Then\n        MsgBox \"This person is a retiree\"\n    Else\n        MsgBox \"This person is an employee\"\n    End If\nEnd Sub<\/code><\/pre>\n\n\n\n

This code checks whether a person is underage. If the condition is met it returns the message. If the condition is not met if checks the next condition \u2013 if a person is over 65. If the condition returns TRUE<\/strong> it returns the next message. If both conditions are not met, it returns the last message inside Else<\/strong>.<\/p>\n\n\n\n

IF with logical operators<\/h2>\n\n\n\n

NOT<\/h3>\n\n\n\n

In our example, we used the following condition:<\/p>\n\n\n\n

age >= 18<\/strong><\/p>\n\n\n\n

If you want to select people who are younger than 18, you can use this statement: age < 18<\/strong>, or you can use negation.<\/p>\n\n\n\n

With negation, our example looks like this.<\/p>\n\n\n\n

Sub SingleIfNot()\n    Dim age As Integer\n    age = 18\n    \n    If Not age >= 18 Then MsgBox \"This person is not an adult\"\nEnd Sub<\/code><\/pre>\n\n\n\n

In the above example, no code will be executed because it makes our condition negative.<\/p>\n\n\n\n

Sub SingleIfNot2()\n    Dim age As Integer\n    age = 16\n    \n    If Not age >= 18 Then MsgBox \"This person is not an adult\"\nEnd Sub<\/code><\/pre>\n\n\n\n

After you changed our variable to be smaller than 18, the message is going to be displayed.<\/p>\n\n\n\n

\"\"<\/figure>\n\n\n\n

OR and AND<\/h3>\n\n\n\n

Besides NOT<\/strong>, you can also use AND<\/strong>\nand OR<\/strong>.<\/p>\n\n\n\n

Let\u2019s modify our example.<\/p>\n\n\n\n

First, we are going to use AND<\/strong>.<\/p>\n\n\n\n

Sub IfAnd()\n    Dim age As Integer\n    age = 56\n    \n    If age >= 18 And age <= 65 Then\n        MsgBox \"This person is an adult and employee\"\n    End If\nEnd Sub<\/code><\/pre>\n\n\n\n

In this example, both conditions\nhave to return TRUE<\/strong> in order to\ndisplay the message. In other words, the condition is met if the age<\/strong> variable is between 18 and 65.<\/p>\n\n\n\n

Nesting IF and ELSEIF (intermediate)<\/h2>\n\n\n\n

You can find that one If<\/strong> the statement is nested inside\nanother If<\/strong> statement. It\u2019s not only\npossible, but you can find that this is a common practice.<\/p>\n\n\n\n

I\u2019ll illustrate it in the following example.<\/p>\n\n\n\n

Sub Fruits()\n    Dim discount As Single\n    Dim amount As Integer\n    Dim fruit As String\n    \n    fruit = \"apple\"\n    amount = 120\n    \n    If fruit = \"banana\" Then\n        If amount > 100 Then\n            discount = 0.1\n        ElseIf amount > 10 Then\n            discount = 0.05\n        End If\n        MsgBox \"You bought \" + CStr(amount) + \" banana(s) with \" + CStr(discount * 100) + \"% discount\"\n    ElseIf fruit = \"orange\" Then\n        If amount > 100 Then\n            discount = 0.2\n        ElseIf amount > 10 Then\n            discount = 0.1\n        End If\n        MsgBox \"You bought \" + CStr(amount) + \" orange(s) with \" + CStr(discount * 100) + \"% discount\"\n    ElseIf fruit = \"apple\" Then\n        If amount > 100 Then\n            discount = 0.4\n        ElseIf amount > 10 Then\n            discount = 0.2\n        End If\n        MsgBox \"You bought \" + CStr(amount) + \" apple(s) with \" + CStr(discount * 100) + \"% discount\"\n    Else\n        MsgBox \"You didn't buy anything\"\n    End If\nEnd Sub<\/code><\/pre>\n\n\n\n

In the first If<\/strong>\nstatement this code checks what kind of fruit you are buying. If there are\nother If statements inside, it checks how many fruits you are buying and gives you\na discount.<\/p>\n\n\n\n

The IIf function<\/h2>\n\n\n\n

There is no typo. There is a function in VBA, called IIf<\/strong>. This function is not as popular as\nthe If<\/strong> statement, but it exists, so\nI decided that it should be mentioned.<\/p>\n\n\n\n

It\u2019s similar to ternary operators from other programming\nlanguages.<\/p>\n\n\n\n

With this function, you can make your code even shorter than\nwith single-line If<\/strong> statements.<\/p>\n\n\n\n

This is our If<\/strong> .. Else<\/strong> example.<\/p>\n\n\n\n

Sub IfElse()\n    Dim age As Integer\n    age = 16\n    \n    If age >= 18 Then\n        MsgBox \"This person is an adult\"\n    Else\n        MsgBox \"This person is a youngster\"\n    End If\nEnd Sub<\/code><\/pre>\n\n\n\n

Let\u2019s modify it in order to use the IIf<\/strong> function.<\/p>\n\n\n\n

Sub IfElse()\n    Dim age As Integer\n    age = 16\n    \n    MsgBox IIf(age >= 18, \"This person is an adult\", \"This person is a youngster\")\nEnd Sub<\/code><\/pre>\n\n\n\n

It\u2019s going to return this message.<\/p>\n\n\n\n

\"\"<\/figure>\n","protected":false},"excerpt":{"rendered":"

Sometimes you don\u2019t want every part of your code to be executed as you run your macro. In almost every computer language. In…<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[19],"tags":[],"yoast_head":"\nVBA If Then Else (complete guide)<\/title>\n<meta name=\"description\" content=\"Learn how to use the IF statement in VBA with our step-by-step guide. Control the execution of code and only run it when certain conditions are met.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/officetuts.net\/excel\/vba\/if-then-else\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"VBA If Then Else (complete guide)\" \/>\n<meta property=\"og:description\" content=\"Learn how to use the IF statement in VBA with our step-by-step guide. Control the execution of code and only run it when certain conditions are met.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/officetuts.net\/excel\/vba\/if-then-else\/\" \/>\n<meta property=\"article:published_time\" content=\"2019-08-05T14:28:06+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2024-02-19T15:10:17+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/officetuts.net\/excel\/wp-content\/uploads\/sites\/2\/2019\/08\/if-display-message.png\" \/>\n<meta name=\"author\" content=\"Tomasz Decker\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Tomasz Decker\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"6 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/officetuts.net\/excel\/vba\/if-then-else\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/officetuts.net\/excel\/vba\/if-then-else\/\"},\"author\":{\"name\":\"Tomasz Decker\",\"@id\":\"https:\/\/officetuts.net\/excel\/#\/schema\/person\/41b0b6996aaa4c4127f86f3d24452d42\"},\"headline\":\"VBA If Then Else (complete guide)\",\"datePublished\":\"2019-08-05T14:28:06+00:00\",\"dateModified\":\"2024-02-19T15:10:17+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/officetuts.net\/excel\/vba\/if-then-else\/\"},\"wordCount\":801,\"publisher\":{\"@id\":\"https:\/\/officetuts.net\/excel\/#\/schema\/person\/41b0b6996aaa4c4127f86f3d24452d42\"},\"image\":{\"@id\":\"https:\/\/officetuts.net\/excel\/vba\/if-then-else\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/officetuts.net\/excel\/wp-content\/uploads\/sites\/2\/2019\/08\/if-display-message.png\",\"articleSection\":[\"vba\"],\"inLanguage\":\"en-US\"},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/officetuts.net\/excel\/vba\/if-then-else\/\",\"url\":\"https:\/\/officetuts.net\/excel\/vba\/if-then-else\/\",\"name\":\"VBA If Then Else (complete guide)\",\"isPartOf\":{\"@id\":\"https:\/\/officetuts.net\/excel\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/officetuts.net\/excel\/vba\/if-then-else\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/officetuts.net\/excel\/vba\/if-then-else\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/officetuts.net\/excel\/wp-content\/uploads\/sites\/2\/2019\/08\/if-display-message.png\",\"datePublished\":\"2019-08-05T14:28:06+00:00\",\"dateModified\":\"2024-02-19T15:10:17+00:00\",\"description\":\"Learn how to use the IF statement in VBA with our step-by-step guide. Control the execution of code and only run it when certain conditions are met.\",\"breadcrumb\":{\"@id\":\"https:\/\/officetuts.net\/excel\/vba\/if-then-else\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/officetuts.net\/excel\/vba\/if-then-else\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/officetuts.net\/excel\/vba\/if-then-else\/#primaryimage\",\"url\":\"https:\/\/officetuts.net\/excel\/wp-content\/uploads\/sites\/2\/2019\/08\/if-display-message.png\",\"contentUrl\":\"https:\/\/officetuts.net\/excel\/wp-content\/uploads\/sites\/2\/2019\/08\/if-display-message.png\",\"width\":160,\"height\":133},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/officetuts.net\/excel\/vba\/if-then-else\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/officetuts.net\/excel\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"VBA If Then Else (complete guide)\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/officetuts.net\/excel\/#website\",\"url\":\"https:\/\/officetuts.net\/excel\/\",\"name\":\"\",\"description\":\"\",\"publisher\":{\"@id\":\"https:\/\/officetuts.net\/excel\/#\/schema\/person\/41b0b6996aaa4c4127f86f3d24452d42\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/officetuts.net\/excel\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"en-US\"},{\"@type\":[\"Person\",\"Organization\"],\"@id\":\"https:\/\/officetuts.net\/excel\/#\/schema\/person\/41b0b6996aaa4c4127f86f3d24452d42\",\"name\":\"Tomasz Decker\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/officetuts.net\/excel\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/18cbe22837193574870ae40ba56bf712?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/18cbe22837193574870ae40ba56bf712?s=96&d=mm&r=g\",\"caption\":\"Tomasz Decker\"},\"logo\":{\"@id\":\"https:\/\/officetuts.net\/excel\/#\/schema\/person\/image\/\"},\"description\":\"Spreadsheet and Python enthusiast.\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"VBA If Then Else (complete guide)","description":"Learn how to use the IF statement in VBA with our step-by-step guide. Control the execution of code and only run it when certain conditions are met.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/officetuts.net\/excel\/vba\/if-then-else\/","og_locale":"en_US","og_type":"article","og_title":"VBA If Then Else (complete guide)","og_description":"Learn how to use the IF statement in VBA with our step-by-step guide. Control the execution of code and only run it when certain conditions are met.","og_url":"https:\/\/officetuts.net\/excel\/vba\/if-then-else\/","article_published_time":"2019-08-05T14:28:06+00:00","article_modified_time":"2024-02-19T15:10:17+00:00","og_image":[{"url":"https:\/\/officetuts.net\/excel\/wp-content\/uploads\/sites\/2\/2019\/08\/if-display-message.png"}],"author":"Tomasz Decker","twitter_card":"summary_large_image","twitter_misc":{"Written by":"Tomasz Decker","Est. reading time":"6 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/officetuts.net\/excel\/vba\/if-then-else\/#article","isPartOf":{"@id":"https:\/\/officetuts.net\/excel\/vba\/if-then-else\/"},"author":{"name":"Tomasz Decker","@id":"https:\/\/officetuts.net\/excel\/#\/schema\/person\/41b0b6996aaa4c4127f86f3d24452d42"},"headline":"VBA If Then Else (complete guide)","datePublished":"2019-08-05T14:28:06+00:00","dateModified":"2024-02-19T15:10:17+00:00","mainEntityOfPage":{"@id":"https:\/\/officetuts.net\/excel\/vba\/if-then-else\/"},"wordCount":801,"publisher":{"@id":"https:\/\/officetuts.net\/excel\/#\/schema\/person\/41b0b6996aaa4c4127f86f3d24452d42"},"image":{"@id":"https:\/\/officetuts.net\/excel\/vba\/if-then-else\/#primaryimage"},"thumbnailUrl":"https:\/\/officetuts.net\/excel\/wp-content\/uploads\/sites\/2\/2019\/08\/if-display-message.png","articleSection":["vba"],"inLanguage":"en-US"},{"@type":"WebPage","@id":"https:\/\/officetuts.net\/excel\/vba\/if-then-else\/","url":"https:\/\/officetuts.net\/excel\/vba\/if-then-else\/","name":"VBA If Then Else (complete guide)","isPartOf":{"@id":"https:\/\/officetuts.net\/excel\/#website"},"primaryImageOfPage":{"@id":"https:\/\/officetuts.net\/excel\/vba\/if-then-else\/#primaryimage"},"image":{"@id":"https:\/\/officetuts.net\/excel\/vba\/if-then-else\/#primaryimage"},"thumbnailUrl":"https:\/\/officetuts.net\/excel\/wp-content\/uploads\/sites\/2\/2019\/08\/if-display-message.png","datePublished":"2019-08-05T14:28:06+00:00","dateModified":"2024-02-19T15:10:17+00:00","description":"Learn how to use the IF statement in VBA with our step-by-step guide. Control the execution of code and only run it when certain conditions are met.","breadcrumb":{"@id":"https:\/\/officetuts.net\/excel\/vba\/if-then-else\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/officetuts.net\/excel\/vba\/if-then-else\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/officetuts.net\/excel\/vba\/if-then-else\/#primaryimage","url":"https:\/\/officetuts.net\/excel\/wp-content\/uploads\/sites\/2\/2019\/08\/if-display-message.png","contentUrl":"https:\/\/officetuts.net\/excel\/wp-content\/uploads\/sites\/2\/2019\/08\/if-display-message.png","width":160,"height":133},{"@type":"BreadcrumbList","@id":"https:\/\/officetuts.net\/excel\/vba\/if-then-else\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/officetuts.net\/excel\/"},{"@type":"ListItem","position":2,"name":"VBA If Then Else (complete guide)"}]},{"@type":"WebSite","@id":"https:\/\/officetuts.net\/excel\/#website","url":"https:\/\/officetuts.net\/excel\/","name":"","description":"","publisher":{"@id":"https:\/\/officetuts.net\/excel\/#\/schema\/person\/41b0b6996aaa4c4127f86f3d24452d42"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/officetuts.net\/excel\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"en-US"},{"@type":["Person","Organization"],"@id":"https:\/\/officetuts.net\/excel\/#\/schema\/person\/41b0b6996aaa4c4127f86f3d24452d42","name":"Tomasz Decker","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/officetuts.net\/excel\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/18cbe22837193574870ae40ba56bf712?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/18cbe22837193574870ae40ba56bf712?s=96&d=mm&r=g","caption":"Tomasz Decker"},"logo":{"@id":"https:\/\/officetuts.net\/excel\/#\/schema\/person\/image\/"},"description":"Spreadsheet and Python enthusiast."}]}},"_links":{"self":[{"href":"https:\/\/officetuts.net\/excel\/wp-json\/wp\/v2\/posts\/4519"}],"collection":[{"href":"https:\/\/officetuts.net\/excel\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/officetuts.net\/excel\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/officetuts.net\/excel\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/officetuts.net\/excel\/wp-json\/wp\/v2\/comments?post=4519"}],"version-history":[{"count":6,"href":"https:\/\/officetuts.net\/excel\/wp-json\/wp\/v2\/posts\/4519\/revisions"}],"predecessor-version":[{"id":12990,"href":"https:\/\/officetuts.net\/excel\/wp-json\/wp\/v2\/posts\/4519\/revisions\/12990"}],"wp:attachment":[{"href":"https:\/\/officetuts.net\/excel\/wp-json\/wp\/v2\/media?parent=4519"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/officetuts.net\/excel\/wp-json\/wp\/v2\/categories?post=4519"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/officetuts.net\/excel\/wp-json\/wp\/v2\/tags?post=4519"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}