I have a set list that is frequently changed. Example shown below:
A1 AEZS
A2 AEMD
A3 EARS
A4 BCT
A5 BSTG
A6 CHFS
A7 BPMX
A8 ABCD
A9 ZERNA
A10 APPL
I want to extract from this list to pull the words that start with the letter "A", and make it into another list. From my research, I'm aware that using the following function.
Below is the end result I would like to do (C column is arbitrary):
C1 AEZS
C2 AEMD
C3 ABCD
C4 APPL
How can I do this?
I'm aware that using the formula =IF(LEFT("A",1)....etc is probably a good start. But I am new to Excel, and I am not too familiar to working with it. Additionally, I would like to be able to keep the cells in their each row (as in not all into one cell)
You can use an array formula (entered with CTRL+SHIFT+ENTER).
If your info (AEZS, AEMD, etc.) is in column A, starting row 1, you can put this in say B1 and drag down:
=INDEX($A$1:$A$10,SMALL(IF(LEFT($A$1:$A$10,1)="A",ROW($A$1:$A$10)-ROW(A$1)+1),ROWS(A$1:A1)))
Then, to hide errors, just wrap IFERROR([above formula],"") around it.
You can avoid using Array formulas by using the AGGREGATE function. It might also be handy to put the "starting letter" in a cell so it can be changed. For example, with your data in myRange in column A and the starting letters in the first row,
B2: =IFERROR(INDEX(myRange,AGGREGATE(15,6,1/1/(LEFT(myRange)= B$1)*ROW(myRange),ROWS($1:1))),"")
Select B2 and fill across as far as needed (eg to Bn)
Then select B2:Bn and fill down as far as needed.
To understand how this is working, I suggest you use Excel's built-in HELP feature, and also the formula evaluator tool.
And, of course, if this does not need to be dynamic, you can always use a simple or advanced filter. Again, these are well explained in HELP.
Advance Filter offers something of the capability, though is not dynamic:
Add a label to ColumnA and a criterion in A2:
="=A*"
Then DATA > Sort & Filter, Advanced and select Copy to another location, select ColumnA for List range:, A1:A2 for Criteria range: and Copy to: wherever suits.
Advance Filter remembers those settings (except, strangely, Copy to another location) so if the contents of ColumnA change it is only a few clicks to call up Advanced Filter again, select Copy ... and OK.
Related
I am trying to achieve two things which I presume are possible but I'm unsure of where to start.
What I am hoping to achieve is to populate the list (shown in cell C4) with the data entered in cell A3. What I don't know is how to make the A3 string breakdown based on the comma delimiter so that it is not one long string, but rather results in a list at C4, as displayed in the screenshot.
Note: I have hardcoded the list shown in the screenshot as I wanted to show what I need to achieve. If I reference A3 directly (=$A$3), my list only has one item - 'Yes, No, I don't know', opposed to the list displayed in the screenshot.
Then, if this is possible, instead of hard coding A3 as the reference, I want to read the value in B4. This would allow me to change the value of B4 to point at any other cell, such as A6.
I believe both these things are likely possible but Googling has not helped as it appears I'm searching for the wrong keywords.
Instead of having all options in one cell, why don't you just make a list across different columns and then enter in the reference cell the letter of the column. Then in your validation, use indirect(cell ref & "1:" & cell ref & "Max row num").
Or better yet, name the ranges, then simply list the name of the range in the reference cell and use indirect(cell ref) to dynamically change drop down options. E.g your range would be named "fruit", in b4 you would enter "fruit".
May be you can try to separate them in cell A3
=SUBSTITUTE(LEFT($A$2,FIND(",",$A$2,1)),",","")
and try to paste as will in Cell A4
=MID(A2,FIND("Yes",$A$2,2),3)
so as will separate the last word to cell A5
=RIGHT(A2,LEN(A2)-FIND("Yes, ",$A$2)-4)
And your Source in your data validation would be
=$A$2:$A$4
I need help with my office work.
I am trying to look for a formula where I have one database that contains the list of all supervisors and all their analyst (15 per team).
I have tried
=IFERROR(INDEX(Database!$A$1:$A$350,SMALL(IF($F$7=Database!$I$1:$I$350,ROW(Database!$A$1:$A$350)-1,""),ROW()-1)),"")
What I am trying to do is I want to do a lookup using the supervisors list and employee id list and it will show all their emp id on the yellow part.
I have updated a screenshot of the idea,
If your data is been set up in two columns, you might look into use of SMALL. It's an array solution though:
Google Spreadsheets:
Formula in C2:
=ARRAYFORMULA(INDEX($F$1:$F$27,SMALL(($G$1:$G$27=$C$1)*ROW($G$1:$G$27),COUNTIF($G$1:$G$27,"<>"&C$1)+ROW(A1))))
Excel:
Same formula (almost) but entered as array using CtrlShiftEnter:
=INDEX($F$1:$F$27,SMALL(($G$1:$G$27=$C$1)*ROW($G$1:$G$27),COUNTIF($G$1:$G$27,"<>"&C$1)+ROW(A1)))
You can replicate the formula for C17 but just need to edit the cell reference to C17. Drag the formula down.
So, have a look at this:
(Note, submitted before the source data structure was evident, but left as it may be a helpful solution for others...)
Cell B2 is a drop down from data validation to select the supervisor you want to work with.
Drag the choose down for the number you need.
paste in C2 cell:
=FILTER(F:F, G:G=C1)
paste in C17 cell:
=FILTER(F:F, G:G=C16)
also you could just use:
=FILTER(F:F, G:G=INDIRECT("C"&ROW()-1))
I'm trying to find a formula to make an Excel cell read-only based on criteria.
For example - if A2 is empty, make B2 and C2 read-only.
I haven't been able to find any examples of this. Can anyone help out?
That is not possible with a formula. Where would you want to put it? Not in A2 (here's the original data or empty), not in B2 or C2, here's where you might want to put new data.
You may put a warning symbol in a different cell, e.g. D2. Or, as suggested, you might want to use Data Validation on B2 and C2 to prevent them from receiving new input, if A2 is empty: Data Validation -> Custom -> Formula =NOT(ISEMPTY(A2)) and uncheck the "Igonre empty cells" option.
Anyway, this does not prevent you from eratsing B2 and C2 if A2 is empty. So for perfection, a VBA solution would be necessary.
I have searched web, but can not find a way to do cell value dependant drop down, when more than one DD depends on same cell value.
Here is simplified version of what I am trying to do:
enter image description here
The first dependant drop down in Cell C4 uses =INDIRECT(C2) formula in Data Validation. And works perfect - When C2 = "_A", C4 drop down is named range _A.
What formula I need to use in C5 Data Validation to still give me drop down based on same Cell C2 value, but this time from other Named Ranges?
Hope my question makes sense. Please help!
What you need are different string to be inputted in each INDIRECT statement.
This can be done with a VLOOKUP
First you will need a table matching each possible value in C2 to named ranges for each cell that will use data validation.
I don't know what your setup is, so I assumed C2 can only have one of two values: _A and _B -- just add rows for more values
In C4, use the following formula for Data validation:
=INDIRECT(VLOOKUP(C2,O2:P3,2))
And in C5:
=INDIRECT(VLOOKUP(C2,O2:Q3,3))
You can have the lookup table wherever you want, just change the references accordingly, also put in whatever named ranges you have in the correct spot in the lookup table
I want to multiply all the cells from B5 onwards by D2, and put the results from C5 onwards. How would I do this in Excel using a formula? Sorry if this is off topic, but this has been bugging me for a while.
Write a separate cell with say "5". Copy this cell.
Select the column to multiply and right click -> Paste Special -> Paste Special.
Under operations, choose multiply.
Note: You can also choose just a selection, if wanted.
So in your case:
Copy D2
Select B5 to your MAX
Paste Special -> Multiply
Should look correct
You could use your B data and change C to be a formula "=B5*$D$2".
Then drag that down and D2 should stay the same, while B5 becomes B6 and so on.
The results should be correct to your specification.
I hope this helped!
If I get 2 more rep--I can post you a picture of it.
To multiply using a formula, use the $D$2 reference to your multiplier to lock in the cell d2
This tip Emeria mentioned is exactly the way to do it. Keep in mind that you can set the $ on the Row (i.e. D$2) or the Column ($D2) or both ($D$2) and then when you drag using the little square in a selection down, the NON-$ range reference will increment, but the one with the $ will not.
google "locking a range reference excel"
hope this helps if so please vote me up I'm trying to get some points!