Chuyển đến nội dung chính

SEARCH Function and FIND Function in Microsoft Excel

[ad_1]

There are two very similar functions in Excel to look for data inside of cells matching parameters that you dictate: SEARCH and FIND. There are so similar, in fact, that one wonders why have two separate functions that perform essentially the identical results and are identical in the construct of the formula. This article will discuss he one, basic difference.

SEARCH Introduction

The SEARCH function is a way to find a character or string within another cell, and it will return the value associated with the starting place. In other words, if you are trying to figure out where a character is within the cell that contains a word, sentence or other type of information, you could use the SEARCH function. The format for this function is:

= SEARCH ("find_text", "within_text", start_num).

If, for example, the word "alphabet" was in cell C2, and your model needed the location of the letter "a" in that cell, you would use the formula = SEARCH ("a", C2,1), and the result would be 1. To continue this simplistic example, if you were seeking the location of "b" in the word, the formula would be = SEARCH ("b", C2,1), and the result would be 6. You can also use search on strings of characters. If, for example, cell F2 contains 1023- # 555-A123, the formula = SEARCH ("A12", F2,1) would yield the 11 as an answer.

FIND Introduction

The FIND function is another way to find a character or string within another cell, and it will return the value associated with the starting place, just like the SEARCH function. The format for this function is:

= FIND ("find_text", "within_text", start_num).

Using the same example as before, the location of the letter "a" in cell C2 would be discovered using = FIND ("a", C2,1), and the result would be 1. Looking for "b" in cell C2 would be completed be = FIND ("b", C2,1), resulting in the number 6. Finally, continuing on the similarity path, if cell F2 contains 1023- # 555-A123 (as before), the formula = FIND (" A12 ", F2,1) would yield the 11 as an answer. As you can see, up to this point, both methods would give you the same results.

Note: You probably quickly recognized that there are two a's in the word located in cell C2. By staging the starting point in each of the formulas as 1, we will pick up the first instance of the letter "a". If we needed to choose the next instance, we could certainly have the "start_num" part of the formula to be 2, thus skipping the first instance of the letter and resulting in an answer of 5.

Main Differences

The main difference between the SEARCH function and the FIND function is that FIND is case sensitive and SEARCH is not. Thus, if you used the formula = SEARCH ("A", C2,1) (note the capital "A"), the result would still be 1, as in the case before. If you were to use the formula = FIND ("A", C2,1), you would get #VALUE !. FIND is case sensitive and there is no "A" in the word "alphabet".

Another difference is that SEARCH allows for the use of wildcards whereas FIND does not. In this context, a question mark will look for an exact phrase or series of characters in a cell, and an asterisk will look for the beginning of the series of characters right before the asterisk. For example, the formula = SEARCH ("a? P", C2,1) in our alphabet example would yield an answer of 1, as it is looking for an exact grouping of the letter "a" with anything next to it with a "p" immediately after. As this is in the beginning of the word, the value returned is 1. Continuing with the alphabet example, the formula = SEARCH ("h * t", C2,1) would yield a value of 4. In this instance, the wildcard "*" can represent any number of characters in between the "h" and the "t" as long as there is a string beginning and ending with the two letters you use in the formula. If the formula was = SEARCH ("h * q", C2,1), you would get #VALUE !.

In short, these two formulas are very similar, and unless you need confirmation of an exact character or string of characters, you would likely err on the side of using SEARCH. Instances where this may not be the case may involve searches involving specific SKUs or names of employees. In my experience, SEARCH has been more helpful in specific financial modeling exercises, but it is helpful to understand the differences in usage and results as you work through your own modeling projects.


[ad_2]

Nhận xét

Bài đăng phổ biến từ blog này

DIY AT HOME - Home Projects +++

[ad_1] Are you a Home Projects kind of guy ... or not? Owning a home means having something to do, fix, repair, renovate, and create and more. In order to ensure that all these jobs get done effectively (and improve the value of your home) it is very important that you learn DIY (do it yourself) and become competent .. Dependent on your degree of profitability home projects can surely save you plenty of money. DIY is a learning process and a little help can often be just what you need to become a "Pro" Everyone needs a "pat on the back" now and again. The successful completion of home projects will obviously instill a sense of pride but better still will have your better half acknowledge your success with pride. I find that outdoor home projects such as building a storage shed may also have the neighbors green with envy. There are many home projects that enhance the value of a home, one of the most important being building a wooden deck. By utilizing the best p...

DIY AT HOME - Business Sales Close Plan - Milestones to Close the Deal***

[ad_1] Being with my feet on the sales ground for 25 years in IT, I can recommend that many steps in the sales process need to be discussed and agreed internally and with the business customer to come to an agreed and signed contract. Following this sales process through a so called 'Sales Close Plan', describes all the necessary milestones that need to be agreed from a resource perspective, internally from a supplier perspective as well as from the business customer resource perspective. This Sales Close Plan will enable you to set upfront the right expectations during the contract negotiation milestones during an enterprise sales process. Discuss with your business customer the close plan and have your customer sign/off the Sales Close Plan on timescales and milestones. If each milestone is finalized confirm this in email to your customer so all expectations and potential road blocks keeps transparent and visible to you as supplier and business customer. 1. Identify the Power...

Wrist Watch Camera DRONE!! Awesome Foldable Nano FPV Drone Review

Wrist watch drone Link - https://goo.gl/U6DQX6 Gearbest August Sale - https://goo.gl/m441qf DJI Phantom 3 Huge Discount - https://goo.gl/JMbRvg ( Coupon Code - DJI3seGB ) DJI Spark Huge Discount - https://goo.gl/gSG5fS ( Coupon code - Spark20 ) Da Heng DH 800 Nano FPV foldable wrist watch camera drone unboxing and review India 2017 | Awesome Foldable nano fpv drone 2017 | Best budget camera drone 2017 | Smallest foldable drone with camera 2017 Thanks for watching my video,hit the thumbs up if you liked it and SUBSCRIBE to my channel for more Awesome content. Don't forget to checkout my other videos. Follow Me On ~ https://twitter.com/Vimal_TRHD https://www.facebook.com/TechReviewHD/ http://google.com/+ VimalChintapatlaTR https://instagram.com/vimal_chintapatla/ Music~Cold Funk - Funkorama by Kevin MacLeod is licensed under a Creative Commons Attribution license ( https://creativecommons.org/licenses/by/4.0/) Source: http://incompetech.com/music/royalty-free/index.html?isrc=USUAN1...