Its Najeeb. I'm student of TU Delft in the
in the department of electrical
engineering mathematics and computer
science today in this video I'm going to
show you where using office simple Excel
formulas to make our excel sheets more
interesting and more effective to deal
with in the course of programming and
data science for 99 person we have a
learning numerius very basic formulas to
make our complex data analysis tasks
very easy so in this video i will use
these same basic formulas to
implement a searchable list. As you know
when we deal with the with the excel
formulas and Excel sheets we normally
deal with a huge list of numbers for
example the list of names and thousands
of the names so if we want to search
something out of the names It's really hard
to search the some text from the
huge list of names or
anything and it's become even more
harder if we don't know that exactly
what we are looking for example if we
only know that maybe the second name of
a person or maybe even a few charcters
in the middle name of person, so
it's really effective if we can
implement a searchable list in our
excel sheet. so i will implement this.
searchable list without using any arrayList or
any activex component i
will use all the basic formulas that we
have learned.
we can implement so let's start our
implementation so this is that this is
the the text box where I will put my text to be searched. but i will put my text research
and i will start from the first function
with the search formula so the search
formula is very basic to search something
out of the string so in search formulas
I will use
as the target and list from this list
we're from this list so maybe you so
Because I will always put my text here
put my text here so I will lock
it with $ sign or F4.
Now I can type anything
in this textbook so i will type AB.
example
and It giving me
the the #value. it's giving me
the value because it it couldn't find
anything in this if I will drag it to
rest of cells so in most of the cases I found
value i couldn't find anything but you
see in one of the column i found one
so this is the position of the text
I found my targeted tax so i can i can
generate for example I you put the I so
it gave me gave me another cell that is
well that is wrong number nine and it
giving me seven so it's again the
starting position of of the text that I
want to search
ok so it's fine and about actually don't
want to see a value with the combination
of numbers of the values from and also i
will wrap this function and with another
function that is his number-two to just
see that if ya if it could find from the
tax included display and the number
otherwise it will be displayed nothing
so it is displayed to this fall's very
we found something it will return me
true and otherwise it began tested again
we are going to find it like TS or it
it gave me through somewhere here you
can see true look so so but I actually i
will change it a bit further
I don't want to see true or false i will
wrap it further with the if condition so
if it is if it is true it will
give me one and if it is false it will
we give me 0 so it will let me go
further closer
what I want to do it so I will drag it
to rest of the cell and i will see how
to hear you see it is working fine and
but i will write some other text for
example i will type for their half our
double and our Father and yeah it
it gave me something it to pull their
own number six
slow starts working fine so up to now
it's it's fine but my goal is not just
to c 0 1 10000 to see if it is brandon
my goal is to to search all the cells
that contain the target text that I have
put it in this set so for the before
this the preferably is to use the max
function so the what the max function do i will
explain it later, first I will a Implement
that max function. I will use max from the
first cell to the rest of cells so here
you see, lets drag it down and hear
something out
and so this is the example I want to
such en okay you're so it's working fine
what actually the the max function does
max function start from the beginning
here for example i gave it start from
the beginning and right from the
beginning to fill their cell it counts
the maximum number that if we get and
before that before to put its own
value in the cell it will increment it
with one to put the number
example if I found here one occurence in the
next occurrence it we find the maximum
til that cell here the maximum till
that so you can see all these
green and green area on the
maximum number is 1 and then before to
put here it will increase here it will
implement it with one input we can test
it with some other number for them well
we can just put a hour you see it
started from the beginning of the first
occurrence second third 456 still here
and hit found the 16 and then and 17 and
18 column it had nothing so I i can see
here because i have not dragged it
till here i can further drag it to all
the cells to see the effect more clearly
here you see
it counted till 16 and next next two cells
it doesn't contain 'A' and then and for
the further cell it
it found a but it is counted from the
beginning you you can
you can see from here you see it counted
from the beginning till that cell and
put the maximum ok now i am moving this
this row to the left of the names list
to get further closer what I actually
want to do I got it and I'm going to cut
this and going to paste in this so here
I i have the same implementation and
I can type anything in it and you see
If I type, I have no occurrence, so i will type
sage and you see here it gave
me the exact match
ok so the next function i'm going to use
is Row function row is a very useful
function to get list of incremented
numbers so here it is
row function and i will give this cell
and i will start from the first of the cell
drag it down so here give me an
increment function so i will combine and
this Row function with the vlookup and
in the Conjunction of these two these two
cells to get the dynamic list of names
of all the person containing the text that
i will put in this box
so let's wrap it with the vlookup
so wrapping it with vlookup
function we look at something like that
in Vlookup function we we are using
we're rapidly using row and in
there
in the next to the road we are using
this table at least the list of
occurrences that we implemented using
the search function and then and then
actually using the name of the list and
we get the second column and 0 as a full
match so here you see we got siege
wisiter that contain the text that it is
in the box it is in the sage in the 10th row
we can drag it down
to get the list also so something went
wrong. so the problem is because it
found the this text inside this and if
it couldn't find it returns NA values
so we get rid of this by wrapping this
function further in ifError, we already have
used iferror function in our course
if error and it will return the
empty string if it will get an error so
we dragged it to see the effect here you
see we got only the the string that
contain the name that contain this text
we can type something else for example a
a and get nothing. we can type a to give a
a list of names that contain a so
here we have a very simple such search
box maybe we can something and it will
narrow down over such criteria by giving
all the names that contains this text further
we can also implement something to
get the total list of names that contain
this because here we don't know how many
names contain these texts so we can use
countif functions. the count
count if function and in countIf function
will give the Ranger ,Ranger starting
from i1 and range starting from I one
to I don't know, lets say I30 and the criteria
is anything anything means if there is
something in the less than it should
counted so for anything we can use ?
followed by a * inside in inverted commas
so here it is we can find
see that there are total 17 matches that
contains a so for example we can type it
again
so again Y U, it's one then we
can type anything our it give one and
anything for example here ai give to so
here this is box maybe type
anything and it's quite dynamic will
generate a dynamic list of all the names
containing this text and we also
getting the total count in this column
that's all
so this is how we can implement such
using all the very simple formulas
that we implemented in our course thank
you very much for watching this video
hope it will be useful to for the further
Excel exploration
thank you
Không có nhận xét nào:
Đăng nhận xét