A C D
12:58:09 12:58:09 400.9
12:58:16 12:58:10 468.0
12:58:20 12:58:11 425.9
12:58:34 12:58:12 432.4
12:58:38 12:58:13 439.3
12:58:49 12:58:14 442.5
12:58:53 12:58:15 445.2
12:58:56 12:58:16 447.2
12:59:00 12:58:17 449.7
12:59:04 12:58:18 450.4
12:59:07 12:58:19 453.9
12:59:11 12:58:20 454.3
I have a data set like this. I want to make a new helper column B that matches column A and C and gives the value D. So my Bshould look like 400.9, 447.2, 454.3, and so on. Can anyone suggest me what approach should I use for this problem? Thanks!
Put this in column B and drag it down:
=VLOOKUP(A1,$C$1:$D$100,2,FALSE)
Related
I have a column with different names in the rows:
hello_world_xt_x_D3_m6
bye_bye_x_D1_m3
h1_man_xt_x_D3_m6
bonjour_no_x_D1_m12
I would like to remove the ending part which follows the pattern
_x_DN_mZ
where N is a number between 0 and 3 and Z is a number between 0 and 16.
I would like to have
hello_world_xt
bye_bye
h1_man_xt
bonjour_no
I think I should use a combination of search and trim/right, but I do not know how to apply it.
I have tried with =substitute(a2, "_x_D2_m3","") but I do not know how to extend it regardless the numbers which follows D and m
You could use Wildcards (See the ? in the search string)
EDIT: replace second ? with *
Formula: =LEFT(A2,SEARCH("_x_D?_m*",A2)-1)
With data in column A, in B1 enter:
=MID(A1,1,FIND("_x_",A1)-1)
and copy downward:
Would this do?
=LEFT(A2,FIND("_x_",A2)-1)
i have a little issue with excel doing this
let's say i have 4 cells
A,B,C,D
A and C are just identifiers ( they have same text )
but not ordered i want to perform a function that copy cell D content to B if they had the same identifier ( A and C )
example :
A B C D
something AsomethingA something CsomethingC
result :
A B C D
something CsomethingC something CsomethingC
i hope i didn't make it compliacted
thank you guys in advance!
I found out how to do it, i used Vlookup function
,here is it :
=IFERROR(VLOOKUP(A1;$C$1:$D$2000;2;FALSE);"NO MATCH FOUND")
In my case i had 2000 cells, you can edit it however you want
,have a nice day!
I have this table like below:
The end result I want to achieve is:
If there is One and only one group code in Column E, then the
sub-group code should show only that value without A,B,C.
If there are two group codes in column E, then the sub-group code
should show groupcode A and groupcode B.
If there are three group codes in column E, then the sub-group code should show groupcode A, groupcode B, and groupcode C.
========================================================================
Now as you can see in the table, I can only achieve 1003A (correct), but the second value should be 1003B instead of 1003C.
Here's my formula:
=IF(COUNTIF([Group Code],[#[Group Code]])=1, [#[Group Code]],
IF(((COUNTIF($E$4:$E7,[#[Group Code]])=1)+0)=1, [#[Group Code]]&"A",
IF(((COUNTIF($E$4:$E7,[#[Group Code]])=2)+0)=2, [#[Group Code]]&"B",
[#[Group Code]]&"C")))
Anybody knows how do I tweak this code to produce the desirable result?
Thanks so much!
In F4 please try:
=IF(COUNTIF(E$4:E$8,E4)=1,E4,E4&CHAR(COUNTIF(E$4:E4,E4)+64))
All,
I am currently faced with an issue where I need to fetch the first instance of a value in a column, but I have multiple values. No two rows will be the same EXCEPT for the first column.
Example:
A 1 !
A 2 #
B 3 #
B 4 $
C 5 %
C 6 ^
D 7 &
D 8 *
After filter:
A 1 !
B 3 #
C 5 %
D 7 &
Would anyone have a way to go about this? Thanks in advanced.
Edit: Jeeped literally pointed something out that I have been doing for a long time, but didn't even think would work in this instance.
To solve this item, utilize the "Remove Duplicates" on the column in question (Column 1), but make sure you expand the selection. However, uncheck all the columns, and recheck only Column 1 for the criteria.
Thanks.
I am assuming you are trying to extract unique values from each column. If so, Excel has a built in function called Advanced Filter, which will do exactly that.
This tutorial will familiarize you with the feature
http://www.excel-easy.com/examples/advanced-filter.html
Hope that helps
I have excel spreadsheet given by Tom. In that spreadsheet he has given me ~1000 key, value pairs.
Tom's salesID, transID:
salesID transID
329709765 TODPG201110131205590838
329711175 TODPG201110131206560772
329712002 TODPG201110131207560344
329713688 TODPG201110131207570066
330220683 TODPG201110210902560629
330220789 TODPG201110210903570267
2004429174 TODPG201412051415130300
...
In my database, I found those transIDs, but with different salesIDs. So, I need to merge my results with Tom's results.
Tom wants to see the differences, i.e.
Tom's salesID, transID: My salesID, transID:
B C E F G
salesID transID salesID transID match?
329709765 TODPG201110131205590838 227841258 TODPG201110131205590838
329711175 TODPG201110131206560772 635241526 TODPG201110131206560772
329712002 TODPG201110131207560344 201452635 TODPG201110131207560344
329713688 TODPG201110131207570066 412563578 TODPG201110131207570066
330220683 TODPG201110210902560629 472541526 TODPG201110210902560629
330220789 TODPG201110210903570267 330220789 TODPG201110210903570267 match
2004429174 TODPG201412051415130300 2004429174 TODPG201412051415130300 match
...
There could be a match in Tom's and my salesID, but not that many...
This way I can show Tom that for the same transID his salesID and my salesID don't match. It would be even better if the formula also said 'match' right next to the ones that do match...
Is this possible?
I have following formula but no luck so far:
=IFERROR(INDEX($D$2:$D$1064,MATCH(D2,$H$2:$H$1067,0),1),"no match")
You can use the VLOOKUP function to do this... the formula would be something like:
=VLOOKUP([tom's salesID],[Your 2 columns],2,FALSE)=[your transID]
That would return true or false, you could then make it say 'match' or whatever from there. Note that the VLOOKUP wants the data (in this case your salesID column) to be sorted. Do NOT change the FALSE to TRUE -- that will cause it to return the closest matching salesID. The 2 specifies the 2nd column should be returned (your transID).
EDIT: Sorry, I thought you were comparing salesIDs for matching transIDs but you're going the other direction. VLOOKUP uses the first column in the array as the index, so you'd have to swap columns B/C and E/F, but then you could do:
=IFERROR( IF(VLOOKUP(E3,B$3:C$999,2,FALSE)=F3,"match","no match") ,"transID not found")
I added a bit that will also tell you whether your transID is just missing from Tom's list.
I think I understand what you're trying to get at. Try this (with your data in column B,C, E, F):
=IF(ISERROR(INDEX($E$3:$E$9,MATCH(E3&F3,$B$3:$B$9&$C$3:$C$9,0))),"","Match")
Enter as an array (press CTRL+SHIFT+ENTER)
The main part is the index/matching, with two parameters
INDEX($E$3:$E$9,MATCH(E3&F3,$B$3:$B$9&$C$3:$C$9,0))
I'm using what is in E & F to match against the column B and C ranges. You can use index/match, matching multiple parameters, just by connecting them with &, as you can see. If that's not quite what you needed, I think you can see how to tweak - but if not, let me know!