|
Excel Magic Trick 532: Count Blanks In Dynamic Range INDEX MATCH COUNTBLANK functions
Video | Similar Helpful Excel Resources
See how to count blanks in a dynamic range using COUNTIF, INDEX, MATCH, COUNTA and OFFSET. Learn about the difference between an empty cell and a blank. See how to create dynamic ranges with INDEX and OFFSET (Index:Index). Learn about MATCH function using a 2 as the lookup value. Amazing use of INDEX to trick COUNTIF into not seeing an array! Domenic at Mr Excel Message Board xl-central.com xl-central xl-central[dot]com
Got a Question? Ask it Here in the Forum.
Similar Helpful Excel Resources
So I used Excel Magic Trick 185 to dynamically pull content from a spreadsheet: http://www.youtube.com/watch?v=6bGKhbUYOas
However,
It is only working for a few of my columns though and I am getting reference errors, http://www.mediafire.com/?gje8srbp8x2j48w
Can anyone check into my spreadsheet and help me understand why I get these ref errors? Is it because I have spaces in the column names or within the cells? I know a macro is probably a better way to do this, or an auto-filter, but I need it to dynamically update. Any ideas on how to fix this problem or a better way to solve it?
Thanks!
I am following this tutorial from youtube. It is a search function to search for a specefic word in an entire row. Here is the first part of the code:
Code:
=SEARCH(C$3,Table2[[#This Row],[DESCRIPTION]])
except i only get a value in the cell that i typed this in, instead of it searching the rest of the row like in the tutorial. i can't figure out how to fix this. anyone know what im doing wrong?
Good morning,
trying to find out what to do with my spreadsheet and the formulas in it.
If you look into the file 369. I can get to the stage where it outlines the mismatch figure. In the example it is 6 Mismatches.
But I cannot seem to get the table belwo right. Everytime I try and copy past the formula, the first set of data is the one from the first line and then I get a #NUM error, due to the fact that there seems to be a number reoccurence somewhere.
I took the youtube tutorial, but even copying that formula did not work.
My table consist of 2 sets of 600 values each.
Can someone tell me why I am getting this error and help me resolve the issue that the result is an existing set of data?
THANK YOU
BayerStars23
[IMG]file:///C:/Users/BINGLE%7E1/AppData/Local/Temp/moz-screenshot.png[/IMG][IMG]file:///C:/Users/BINGLE%7E1/AppData/Local/Temp/moz-screenshot-1.png[/IMG]
Hello there.
First, and before all, I must admit that I am a kind a "dumb" for Excel, because I always were using it, only for better look's of simple tables, schedule's and similar. Although, I was all the time aware of great power's of this program, but newer tested it.
So, finally after few years of tempting, I decided to make a proper "order-list" for the shop in which I work. What I needed is to ,based on products and their prices, make a drop-down box, with list of the products, and after choosing one , proper price will be shown in next column. I find out how to do it with "Excel magic trick #5" on Youtube.
This is what i achieved:
http://i49.tinypic.com/dorzgn.jpg
However,
You see that in row 16, or line 2 in the order box ,we have #N/A below Cena (Price), Iznos PDV (amount of VAT), Cena sa PDV (Amount with VAT), and Iznos (Total amount). If we choose one of the product from drop-down box (now, as You can see none is chosen) and type number in Kolicina(Quantity) column, all this would be automatically changed into proper value.
But what if we have only one thing in order box, instead of 2 or all of 10 ? How to avoid those #N/A, and make instead to be blank cell, which is to be counted as 0, because of final calculation?
In this order-form we have only line 1 and 2 programed to have drop-down box in line Naziv robe (Name of the product). If I putted same drop-down boxes in rest 8 columns, #N/A would be shown in all programed cells bellow, like in line 2...
Kind regards from Serbia
Hello,
I am constructing a make-shift database in excel but can't seem to find a way to get magic trick #213 to work.
What I am trying to do is create a dynamic filter via 16 criteria. I would like any results that match all criteria that I specify and then displays results in a separate table to the right.
Thank you so much for your help - I would attach my spreadsheet to this message if I knew how.
BR,
PR
http://www.youtube.com/watch?v=tqCEY5YMyqw
I am trying to duplicate the concept on my spreadsheet. It is conceptually the same, the formula is slightly different.
Mine is as follows:
{=IF(ROWS(A$5:A5)>$B$2,"",
INDEX(US!A$5:A$72,
SMALL(IF(US!$AU$5:$AU$72=Sheet1!$A$2,ROW(US!$AU$5:$AU$72)-ROW(US!$AU$5)+1),ROWS(A$5:A5))))}
Resulting in a #VALUE! error. Can anybody advise me what should the formula me?
Thank a million!
Long
Looking for a little help tweaking Excel Magic Trick 185. I've reached what is probably just a mental block.
I'm trying to adjust a spreadsheet for work using the processes described in Excel MagicTrick 185. (Great series, by the way...) The catch is that the source data table can not be modified under any circumstances (we've already asked).
The problem is different than EMT_185 in that there are 9 columns that can potentially define a match as opposed to just the one shown in EMT_185. There are two user options ('I-III' and 'A-C') which in combination establish the headings for the 9 possible conditions (I-A, II-A, III-A ...) .
(See the linked spreadsheet) I've been able to:
determine if a row in the source matches user provided conditions (col Y),
get the count of matched source rows (row 26),
determine the match instance (col AA), and
place the source data in the output table (col AC)
What I can't quite get my mind around is suppressing the blanks in the output (i.e.:getting match 1 on row 1, match 2 on row 2, etc.)
What am I missing? Please help. A spreadsheet showing what I have so far is located on google docs. Perhaps you could make a new EMT out of it!
BTW.. this used to be done via vba, however that is no longer an option (don't ask... It just isn't, and it's not a topic that is open to discussion -- we tried).
Dear Smartest Excelers Around,
I want to count blanks in a horizontal range (all in one row) that will change (dynamic range). The values in the range could be numbers or words. Some values may be added to the end, but there may still be some empty cells to the right of the last value. My goal is to count blanks in the range up to the last entered value, but no beyond that. As an example:
A6 = 2
B6 = empty cell
C6 = 2
D6 = empty cell
E6 = tt
F6 = empty cell
The range for the count blanks would be A6:E6. F6 is not included because the last entered value is in cell E6.
The answer (count blanks in dynamic range) should be 2.
I have got these 3 formulas to work, but it seems that there must be a better (shorter, faster calculating, more elegant) formula than these:
=COUNTBLANK(OFFSET(A6,,,,MATCH(9.9E+307,MATCH(A6:F6,A6:F6)+TRANSPOSE(ROW(INDIRECT(""1:""&COLUMNS(A6:F6)))))))
=COUNTBLANK(OFFSET(A6,,,,MATCH(9.9E+307,MATCH(A6:F6,A6:F6)+{1,2,3,4,5,6})))
=COUNTBLANK(A6:INDEX(A6:F6,MATCH(9.9E+307,MATCH(A6:F6,A6:F6)+TRANSPOSE(ROW(INDIRECT(""1:""&COLUMNS(A6:F6)))))))
Any ideas?
P.S. The trouble I was having with creating a formula was that all the blanks became zeros when I started analyzing it with MATCH and other functions...
Hi all,
Once again i come here hoping that somebody has a lot more skill than i do!
I am not sure how to attach a sheet here, nor how to post what I see, so will try to describe my setup as best possible.
Basically i have a table that i want to be able to do a fully customized dynamic data grab from.
The data will always be changing, so I do not want to fix things or rely on the data always being in the same spot.
I am using the INDEX and MATCH formulas, but not sure if they are the best way to do it, but it works well except for one part ...
Here is the formula i am using:
=INDEX(A2:D10,MATCH(A15,A2:A10,0),MATCH(B14,A1:D1,0))
The test set-up i have is as follows, hope this makes sense:
(ignore the " as they just denote text in a cell)
B1 = "aaaa"
D1 = "bbb"
A2:A10 = the numbers down 1-9 (1,2,3,4,5,6,7,8,9)
B2:B10 = "apple", "orange", "banana", "kiwi", "grape", "melon", "plum", "peach", "cherry"
C4:C8 = the numbers down 1-5 (1,2,3,4,5)
D4:D8 = "kiwi", "grape", "melon", "plum", "peach"
B15 contains the formula =INDEX(A2:D10,MATCH(A15,A2:A10,0),MATCH(B14,A1:D1,0))
A15 will the the vertical value i am looking for (e.g. 3) and B14 is the horizontal value i am looking for (e.g. aaa)
So if i do this:
A15 = 5 and B14 = "aaa" ... the result is 'grape'
A15 = 1 and B14 = "aaa" ... the result is 'apple'
However, if i do this:
A15 = 1 and B14 = "bbb" ... the result is 0
A15 = 5 and B14 = "bbb" ... the result is 'grape'
The section of this formula that stops me from having complete control, is that the column reference is always matching from column A (A2:A10)
I want this to be dynamic.
I want to reference from the column offset to the left once that is being defined in B14 (i.e. either "aaa" or "bbb")
so if I have "aaa" selected, i want it to match my desired value from the range A2:A10
if i have "bbb" selected, i want it to match my desired value from range C2:C10
So if i do this:
A15 = 1 and B14 = "bbb" ... the result is 'kiwi'
A15 = 5 and B14 = "bbb" ... the result is 'peach'
does that make sense?
How do i modify the index formula to have a double dynamic column match reference?
Thank you so much for any time and help you may be able to provide.
Kindest regards,
KJ
Hey guys
A while back I found a link (I think through this forum) to a few macros that were magic tricks.
Does this ring any bells? I'm trying to find it again.
Any help would be much appreciated.
|
|