I am working a project where I need to find certain words and replace them with a number in another column. However I cant find a way to make it work for the large amount of information
For Example: A Is the column where i am taking the old information. B is where I need to take the old information and replace it while the numerically code given in column C
A B C
Single 01 Single = 01
Single 01 Married = 02
Single 01 Unknown = 98
Married 02 Divorced = 99
unknown 98 Separated = 05
Divorced 99
Separated 98
I'm not sure how to get it to work . So any help would be greatly appreciated.
Rob, you look up range has to be a two-column layout, not a one-column as you have it.
Assuming your data starts at row 1, your current lookup range is C1:C5. I would do the following:
1) Assign cell C1 to value of "Single", C2 = "Married", C3 = "Unknown", C4 = "Divorced", C5 = "Separated".
2) D1 should be "01", D2 = "02", D3 = "98", D4 = "99", D5 = "05"
3) B1 = =VLOOKUP($A1,$C$1:$D$5,2,)
4) Copy this formula down so B7 =VLOOKUP($A7,$C$1:$D$5,2,)
5) If you like to handle any errors and assign unknown values to "98", you can change cell B1 to have this formula instead: =IFERROR(VLOOKUP($A1,$C$1:$D$5,2,),"98")
Related
First time asking for advice here so I apologize if my terminology is messed up.
Here is what I'm trying to figure out how to solve (ideally in excel):
Given I can have up to 5 groups (A), and each group could have up to 4 entries (B), how do I evenly distribute B where the sum always equals 100.
Example 1:
Group A1 - Entry B1 = 15
Group A1 - Entry B2 = 15
Group A1 - Entry B3 = 15
Group A1 - Entry B4 = 15
-----
Group A2 - Entry B5 = 20
Group A2 - Entry B6 = 20
SUM OF B1:B6 = 100
Example 2:
Group A1 - Entry B1 = 25
Group A1 - Entry B2 = 25
----- <br/>
Group A2 - Entry B3 = 50
SUM OF B1:B3 = 100
Example 3:
Group A1 - Entry B1 = ???
Group A1 - Entry B2 = ???
Group A1 - Entry B3 = ???
----- <br/>
Group A2 - Entry B4 = ???
----- <br/>
Group A3 - Entry B5 = ???
Group A3 - Entry B6 = ???
SUM OF B1:B6 = 100
With your allocation in a table that can be referenced use this:
=VLOOKUP(A2,D:E,2,FALSE)*100/COUNTIF(A:A,A2)
Where your allocation table is in Columns D and E.
I want to get output on below table using Excel function.
I have tried Index match but it only helps to get output for first value, while I have duplicate values.
Database
Date Product Name
01-01-2016 60 A
01-01-2016 54 B
01-01-2016 40 C
01-01-2016 60 D
01-03-2016 47 A
01-03-2016 39 B
01-03-2016 46 C
01-03-2016 42 D
01-02-2016 37 A
01-02-2016 53 B
01-02-2016 25 C
01-02-2016 46 D
01-04-2016 49 A
01-04-2016 47 B
01-04-2016 46 C
01-04-2016 27 D
Need a help to fill the below table using Excel formula
Kindly find the below sample output
enter image description here
Using your posted "database" graph (the first one) as a reference and assuming that it starts in cell A1, I put your "required output" data in F1:J5. "A" starts in F2, F1 is blank and the dates are in cells G1:J1.
In G2 put this Array formula and then fill down to the last letter "D": = INDEX($B$1:$B$17,SMALL(IF($C$2:$C$17=$F2,ROW($C$2:$C$17),""),COLUMN()-6)). Then fill across. The "COLUMN()-6" in the Small function assumes that you put your "required out" data in the range F1:J5; otherwise, you will need to change it manually.
Need some help in figuring out an formula to count the number of times a value is listed in a column. I will try and explain the requirement below.
The below image show sample of data set.
The requirement is to list out issues and actions per customer.
As you can see, even from values clustered in cell, we need to find out individual unique values and then map it against the adjacent column or columns.
It just need an extra sheet/table to execute..
try :
A1 = a,b,c
A2 = b,c
A3 = c,b,a
A4 = c,a
A5 = b
B1 = ss
B2 = ss
B3 = dd
B4 = dd
B5 = ss
D1 = a
E1 = b
F1 = c
C7 = ss
C8 = dd
D2 =IF(FIND(D$1,$A2,1)>0,1,"") drag until F6
D7 =COUNTIFS($B$2:$B$6,$C7,D$2:D$6,1) drag until F8
D7:F8 will be your desired results. Happy trying.
I have to pull account reports out of a system but the regions are represented as a number. I have a separate list that has two columns, one with the region name and one with the corresponding number. I'm looking to write a formula that identifies the number in the report column and populates it with the region name from my static table.
Example:
Region List
A1 B1
1 00 London
2 01 West Midlands
3 02 Greater Manchester
Report
A2 B2
1 Customer A 00
2 Customer B 02
3 Customer C 02
4 Customer D 01
5 Customer E 00
As mentioned, I want to populate column B2 with the data from B1. B2's numbers will corrispond with A1's numbers. It's worth mentioning that there are also some variations like 07D or 19H, so the formula would need to take that into account.
Use this function, I hope it will work.
=INDEX('Region List'!$B$1:$B$3;MATCH($B1;'Region List'!$A$1:$A$3;0))
similar to a post back in May, I also need to create a sheet that includes (3) different sources of information to create a running total based on the last same value
this example is what I need to happen
Column A = D (to add) or W (to deduct)
Column B = Source1 or Source2 or Source3
Column C = the value that needs to be added or deducted
Column D = the running total based on the source (Column B)
A1 = D
B1 = Source1
C1 = 100
D1 = 100 (0 + C1)
A2 = W
B2 = Source1
C2 = 25
D2 = 75 (D1 - C2)
A3 = D
B3 = Source2
C3 = 50
D3 = 50 (0 + C3)
A4 = D
B4 = Source1
C4 = 100
D4 = 175 (D2 + C4)
A5 = W
B5 = Source2
C5 = 10
D5 = 40 (D3 - C5)
A6 = D
B6 = Source3
C6 = 20
D6 = 20 (0 + C6)
Any help would be greatly appreciated
Have tried inserting a picture, however as I am a new to the site I am unable to...sorry about that
I am using this which adds correctly
=SUMIFS($C$1:$C1, $A$1:$A1, A1, $B$1:$B1, B1)
however, I also need to make it deduct if Column A = W
Put this in cell D1 and copy it down: =SUMIFS($C$1:$C1,$B$1:$B1,B1,$A$1:$A1,"D")-SUMIFS($C$1:$C1,$B$1:$B1,B1,$A$1:$A1,"W").
I was able to get started using the formula that you provided. I modified it so that it subtracted a running total of W's for each source from a running total of D's for each source.