I have a column of machine names. Management want a separate column to say "Desktop" or "Laptop" instead. Now the 5th character is what I can check to differentiate. I've tried searching and cannot find the right code. My machine name is column I and column H will need to have the right formula to display desktop or laptop. It's about 1300 rows. Any suggestions are appreciated?
Jeff
For the sake of an answer, quoting #Jeeped:
The MID function is what you are looking for. e.g. =IF(MID(I2, 5, 1)="D", "Desktop", "Laptop")
Related
I'm using Excel v16.22 on a Mac.
Is this possible?
I have two columns that I need to cross reference. I need to check that text in column A appears in column B (as per the text highlighted in my example below) and have some feedback in column C to confirm whether or not the text appears in both. Whether that's a 'Yes' or 'No'. If the text doesn't match then I know I need to double check that information. I have 3,500 rows to check so that's why I wanted to automate the confirmation process.
Hope this makes sense.
For confirmation, I have researched this online and tried a couple of solutions. One of them I just couldn't get it to work, and another solution just didn't achieve the outcome I was after.
Appreciate any help.
Dave
Hi Mark, just adding this image in reply to you answer so I can show you the negative response.
I would use a Find formula to search for the text in Column B in the text from Column A. Breaking down this formula I do two things.
First, I use the find function to see if a value is pulled, if any number appears you know the text is found, so if it's 0 or higher, than say "Yes".
Secondly, if the text isn't there it will instead give an error, so I put this within an Iferror formula where an error would mean no text match. The first instance of "No" functionally doesn't do anything and can be excluded, but I left it here so If fans could see the logic written out.
=iferror(if(find(A2,B2)>=0,"Yes","No"),"No")
UPDATE: found an answer to my problem through this website: https://exceljet.net/formula/categorize-text-with-keywords
I'm trying to categorize certain products based on the beginning of each product name. My first table is the look-up table below:
My second table currently looks like this:
And I want the end result of that second table to look like this:
What excel formula can I use to achieve the red column? I've tried scouring the internet, for the formula that best suits my need, but I can't figure it out. I've seen people throw out the =Lookup(Search()) function, but my formula needs to start with the key word, but just contain the keyword somewhere in the cell.
I've read many different forums, but I haven't been able to find one that answers a scenario similar enough to mine. Any suggestions are appreciated.
If the first word of the Product Name is always matched to the product start, you can vlookup by just the 1st word. Assuming your product start is in column A, Categerization in Column B, Product Name in Column C, you can key in the formula in Column D:
'''
=vlookup(left(C2,search(" ",c2)-1),A:B,2,0)
'''
Just set your vlookup 4th parameter to TRUE:
Note: formula as written can be drag/filled down from B2. Also your Category Table needs to be in A-Z sorted order.
HTH
I have 2 tables. First one contains the website url, City, State, Country etc which of those I need while emailing the persons. The second table has the vital "Email ids" extracted by software along with just the website urls.
But the Website urls might not be only one or so similar to the original one picked from the 1st table column.
Now, I would like to get the result in Column A only where some of the respective Column B value equals or almost equals to any values present in Column D.
I tried using IFERROR, TRUE/FALSE and VLOOKUP but of no success yet. Kindly help to achieve this.
Thanks in advance and have a nice day ahead.
You can use index match, but as an array formula if you need to get address 'like' other ones. I take this as google.com and google.com/tryme should be the same.
{=IFERROR(INDEX(C:C, MATCH(B1, LEFT(D:D, FIND("/",D:D, 1)-1), 0)), "")}
Enter this using CTRL + SHIFT + ENTER
I need to download warehouse inventory levels in a CSV, every morning, and update my website inventory CSV based on those numbers.
I've combined them into one worksheet.
Image: http://i62.tinypic.com/1zqxd7n.png
Column K contains the SKUs of all the items in my online store.
In column A is the list of the warehouse's SKUs, sorted to only display out-of-stock items.
I need to go down column A and see if that SKU exists in my store by looking in column K. If it's not in column K, ignore. "999999999" just means "in-stock." If it is in column K, write "0" in the cell one right of it, for "out-of-stock."
I'm looking for the formula for column L. So far I've tried something like =0*(INDEX(K:K,MATCH(A3,K:K,0))), but I think I've got it all wrong.
This problem is similar to the one here, but slightly different.
I would greatly appreciate your help, it would save me a LOT of time. Thanks in advance!
Eric, . The following formula should give you what you are after. I have replaced '999999' and '0' with a narrative return, as the logic (in the question) for whether or not an item is in stock appears to be the wrong way around.
Since an error would ordinarily be returned by a straight Index/Match formula, when a value cannot be found, you can build that into the formula.
=IF(ISERROR(INDEX(K:K,MATCH(A3,K:K,0))),"Cannot Find in Col K","Can Find in Col K")
You don't really need INDEX function if you aren't retrieving any values, perhaps try this formula:
=IF(COUNTIF(K:K,A3),999,0)
That will return 999 if A3 exists in column K, otherwise 0
I have an excel sheet with 8000 records that i would like to search by postcode.
This is my client list and i would like to say search for all clients living in the "EH1","EH2","KY1","SW9" postcodes.
I would like the search to return all the values related to that postcode.
The excel document is laid out like this.
(ID,Name,Surname,Address,Postcode,Telephone Number)
Im a novice at excel spreadsheets so any help on this would be greatly appreciated.
ID Name Surname Address Postcode Telephone number
26584 John Smith 69 Bedford road Eh12 5db 0131225689
Thanks
Edited with quick and dirty method:
If you only need to use this table a few times, then there is a quick and dirty method:
Make a helper column that only includes the first 3 characters of the postcode. You do this via the left function, specifying the postcode column in the first argument, then "3" in the next, to return the first 3 characters. This effectively hides the values you haven't ticked.
You then use the filter section at the top of the column once you have made it a table as stated earlier. In the drop down menu untick "Select all", then tick the values you want to see, i.e. the postcodes you are interested in).
You can then copy the visible cells only via Copy visible cells only if you want to use just that list.
A longer, but more robust method would involve three tables. The first is your data set as it is, with the helper column as discused above included. The second would be a simple single column of all the first three letter codes you are interested in. The third would be an array function modified from this formula:
=index($a$1:$b$7,small(if($a$1:$a$7=$a$10,ROW($a$1:$a$7)),ROW(1:1)),2)
which returns multiple items based on preset criteria, ignoring those that are not specified. I would link to a site explaining this better but I am such a new user I can hardly do anything it seems :(
I suggest you simply use an autofilter on the respective column.
Here is a short tutorial for Excel 2010: AUTOFILTER TUTORIAL
I think an easy way to do this is first make Postcode column first; from Column E to Column A.
Insert a new column in Column A, then use the left function to get the first 3 characters of the postcode: =LEFT(B1,3)
With this, you can use VLOOKUP to search for the postcodes "EH1","EH2","KY1","SW9", and use multiple VLOOKUP formulas to return a column index of everything.
You'll end up with a list of everything for that specific postcode.