Excel - avoiding indirect - excel

I have the following three columns A,B,C
+-----------------+---------------+--------------------------------------------------------+
| ExcelRangedName | Default Value | Formula Check |
+-----------------+---------------+--------------------------------------------------------+
| Name1 | | =IF(AND(ISBLANK(B2),ISBLANK(INDIRECT(A2))),"Yes","No") |
| Name2 | FALSE | … |
| Name3 | TRUE | … |
| Name4 | 0 | … |
| Name5 | Alpha | … |
| Name6 | | … |
| Name7 | | … |
| Name8 | | … |
| … | … | … |
+-----------------+---------------+--------------------------------------------------------+
The column "ExcelRangedName" has text which refers to a range name in other worksheets. I want to replace the formula to remove the indirect completely as it is slowing down my worksheet. I remember being able to do this using paste values trick but I completely forgot how. I want my formula to look (for the first row):
=IF(AND(ISBLANK(B2),ISBLANK(Name1)),"Yes","No")
Is this possible?

Related

Match first instance of cell in a column not equal to the other column with offset

Suppose I have the following table
+---+-------+-------+
| | A | B |
+---+-------+-------+
| 1 | 7,75 | 9,50 |
+---+-------+-------+
| 2 | 9,50 | 10,50 |
+---+-------+-------+
| 3 | 10,50 | 11,50 |
+---+-------+-------+
| 4 | 11,75 | 13,00 |
+---+-------+-------+
| 5 | 13,00 | 14,00 |
+---+-------+-------+
| 6 | 14,00 | 15,25 |
+---+-------+-------+
| 7 | 15,25 | |
+---+-------+-------+
I want to find the first occurrence in column A where it does not match column B with an offset of -1 in the rows (in this case, it should give me 11.75, A4)
I would like to avoid using VBA.
I tried using MATCH, but I'm unsure how to do the condition with 2 tables
Would this work for you:
=LOOKUP(1,1/(A2:A7<>B1:B6),A2:A7)
No need to CSE LOOKUP().
use INDEX/AGGREGATE:
=INDEX(A:A,AGGREGATE(15,7,ROW(A2:A7)/(A2:A7<>B1:B6),1))

Excel search range of cells that contain text return entire cell that contains text

I am trying to get a formula to check a set of data for a certain text. For example, assuming the below table starts in Cell A1, I would like to search Columns C,D,E,F,G for a string, and return the entire contents of the cell that contains that string. So for the "AltID 101020", I would like to search columns C-G for the string "Plan" and return the value of "Plan11" in B2, "Plan88" in B5, and "Plan2d" in B7.
A B C D E F G
Data Column1 Column2 Column3 Column4 Column5 Column6
+--------+-------+-------+-------+-------+-------+-------+
1 | AltID |Plans | CovA | CovB |CovC | CovD | CovE |
+--------+-------+-------+-------+-------+-------+-------+
2 | 101020 | | Pol3 |Plan11 | | |Coord2e|
3 | 907030 | | Pol | | Sub5a | Alt24 | |
4 | 805050 | | | | | | |
5 | 778050 | | |Plan88 | Sub7d | |Coord2 |
6 | 232520 | | | | | | |
7 | 357031 | | |Plan2d | Sub7e | | |
8 | ... | ... | ... | ... | ... | ... | ... |
+--------+-------+-------+-------+-------+-------+-------+
Using this formula, you can see if there is the word "plan" in a cell or not. In case not there is an empty string. You can concatenate all those in one cell, and use a MATCH function for using it:
=IF(ISERROR(FIND("plan";D2));"";D2)

Summing up rows in Excel if rows contain identical string

I have a table with two columns. One column has names, the second column has numbers:
|-------|------|
| Names | Nums |
|-------|------|
| Name1 | 2 |
| Name5 | 3 |
| Name7 | 1 |
| Name1 | 1 |
| Some4 | 5 |
| Yay55 | 2 |
| Name1 | 1 |
| Name5 | 1 |
| Name5 | 7 |
| Name1 | 8 |
| Yay55 | 3 |
| Yay55 | 1 |
| Name1 | 0 |
|-------|------|
I am looking to consolidate this table to have unique Names only and a sum of all occurrences in the Nums column. Is it possible to achieve it without VB, and using only Excel functions?
Just to add a note, it should not be considered a duplicate question. I am aware of This Question, that is similar, but asks about VB.
You can use a Pivot Table to summarize your data by name and using the sum of values.
I.e.:
Creating the table:
Organizing data:

Microsoft Excel - Use a drop down list to extract data from another workbook

If i select an option from a drop down list, how do i then display data extracted from another workbook. So far, i have seen examples of showing single row data from another worksheet. But i have yet to see a method of extracting multiple rows and columns of data from a different workbook.
Week 1.xls:
A B C
-------------------------------------------------
| SKU | Description | Vendor Style |
-------------------------------------------------
| | | |
| 000001 | Description 1 | CA0080-03E |
| 000002 | Description 2 | EX1134-59D |
| 000003 | Description 3 | EM0132-59A |
| 000004 | Description 4 | EW8694-52D |
| 000005 | Description 5 | FC0003-18D |
| 000006 | Description 6 | EK2273-59E |
Master.xls:
A B C
------------------------------------------------- ________ _
| SKU | Description | Vendor Style | |________|>| <---Drop Down List
-------------------------------------------------
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
If i choose, e.g. Week 1 in the drop down list. I want the data from Week 1.xls to fill in the table in Master.xls.
If i choose, e.g. Week 2 in the drop down list. I want the data from Week 2.xls to fill in the table in Master.xls.
Is this possible? I'm thinking vlookups may be involved here in order to point to each workbook.
Thank you.

Excel if statement to display if anything is in the row

I don't really know how to search for this question or an appropriate title, so I hope that this will make sense.
I'm trying to construct an Excel spreadsheet to keep track of functions of a software that are currently have tests made for them. The spreadsheet looks something like below where A-F are placeholders for the tests and 1-5 are placeholders for functions.
| | A | B | C | D | E | F |
|:-:|---|---|---|---|---|---|
| 1 | X | | | | | X |
| 2 | | | | | | |
| 3 | | X | | | | |
| 4 | | | X | | | |
| 5 | | | | X | X | |
I would like to have another column at the end that would do something like this:
| | A | B | C | D | E | F | Tested? |
|:-:|---|---|---|---|---|---|---------|
| 1 | X | | | | | X | Yes |
| 2 | | | | | | | No |
| 3 | | X | | | | | Yes |
| 4 | | | X | | | | Yes |
| 5 | | | | X | X | | Yes |
where the final column is an if statement that will display a conditional string base on if there are any entries in the row. I know that Excel's IF statements work something like this =IF(A1=10,"YES","NO") but I can't think how I would construct an IF statement that would print YES or NO based on whether there are any entries at all in the row.
EDIT: To add a little more detail. I've thought about constructing an IF statement like this: =IF(SUM(C3:AI3)>0, "YES", "NO") and this works essentially if I use 1s or 0s instead of X or O but I'd rather use the latter. Or really I'd just rather use strings instead of integers.
You can use following formula:
=IF(COUNTA(A1:F1)>0,"Yes","No")
You're looking for the ISBLANK function.
Your solution should be something like this:
=IF(ISBLANK(A1:F1), "Yes","No")

Resources