Lookup or other function?

BT690

New Member
Joined
May 24, 2013
Messages
20
Office Version
  1. 365
Platform
  1. Windows
Hi

Trying something new with a large database and was hoping someone might have an idea how to go about it.

I have two sheets of data with and ID code in each sheet but i need to match a sum of all the results into a summary sheet like below

I need to search Column A of sheet 1 for eg "R6417" and return a sum of all the values in column G for "R6417" which in this example sum to 163.11

I need to place this in a column in the summary sheet so you can see the sum of all these parts

ABCDEFG
R6417251.681.50377.5221.501.0220.43
R6417278.901.98552.2221.501.0219.95
R6417145.901.74253.8721.501.0220.19
R6417269.801.58426.2821.501.0220.35
R6417184.361.69311.5721.501.0220.24
R6417254.821.54392.4221.501.0220.39
R6417217.591.25271.9921.501.0220.68
R6417187.691.05197.0721.501.0220.88
R0387843.211.511273.2514.881.0213.67
R0387745.121.691259.2514.881.0213.49
R0387654.871.551015.0514.881.0213.63
R0387851.431.841566.6314.881.0213.34
R0387968.291.371326.5614.881.0213.81
R0387886.321.291143.3514.881.0213.89
R0387761.621.411073.8814.881.0213.77
R0387954.671.061011.9514.881.0214.12
R0387639.281.801150.7014.881.0213.38
R0129453.911.49676.3352.121.0251.67
R0129482.331.44694.5652.121.0251.72
R0129501.841.67838.0752.121.0251.49
R0129491.561.28629.2052.121.0251.88
R0129533.641.61859.1652.121.0251.55
R0129511.951.93988.0652.121.0251.23
R0129499.581.76879.2652.121.0251.40
R0501102.941.08111.1874.801.0275.22
R0501110.671.94214.7074.801.0274.36
R0501130.861.80235.5574.801.0274.50
R0501102.511.25128.1474.801.0275.05
R0501118.731.47174.5374.801.0274.83

<colgroup><col width="64" span="7" style="width:48pt"> </colgroup><tbody>
</tbody>

I tried VLOOKUP to return a value but it doesn't sum the values =VLOOKUP(A1,Sheet1!A1:G2562,7,TRUE)

Any ideas how to insert a sum in this command or alternate method?

Thanks in advance
 

Excel Facts

Is there a shortcut key for strikethrough?
Ctrl+S is used for Save. Ctrl+5 is used for Strikethrough. Why Ctrl+5? When you use hashmarks to count |||| is 4, strike through to mean 5.
Hi,

In this case you can use sumif formula to match IDs and sum corresponding value

=SUMIF($A$2:$A$30,A2,$G$2:$G$30)
 
Upvote 0
Hi Anand

Unfortunately it didn't give me the desired result sorry. Maybe I am just not understanding the command and string though? I have tried all the help in excel without any luck. Quite frustrating for a basic excel user I must admit!

What i need is to look at the code in sheet 1 cell A2 (EG R0501) and look in all of column A of sheet 2 for the same code (R0501) then return the value of that row in Cell G (eg 74.83). There will be multiple repeat entries of the same code in Sheet 1 and only one corresponding code in Sheet 2. Its the value of cell G in sheet 2 i am interested in.

Thanks,
 
Upvote 0
Is this what you are looking for?

=INDEX(Sheet2!$G$1:$G$100,MATCH(A2,Sheet2!$A$1:$A$100,0),0)

Change the ranges to suit.
 
Upvote 0
Hi

Trying something new with a large database and was hoping someone might have an idea how to go about it.

I have two sheets of data with and ID code in each sheet but i need to match a sum of all the results into a summary sheet like below

I need to search Column A of sheet 1 for eg "R6417" and return a sum of all the values in column G for "R6417" which in this example sum to 163.11

I need to place this in a column in the summary sheet so you can see the sum of all these parts

I tried VLOOKUP to return a value but it doesn't sum the values =VLOOKUP(A1,Sheet1!A1:G2562,7,TRUE)

Any ideas how to insert a sum in this command or alternate method?

Thanks in advance

As already suggested...

=SUMIFS(Sheet1!G:G,Sheet1!A:A,$A1)

If you don't have SUMIFS, try:

=SUMIF(Sheet1!A:A,$A1,Sheet1!G:G)

these formulas sums all values which are associated with $A1 of the summary sheet you appear to have.
 
Upvote 0
Use sumif formula here

It will lookup the value in field and provide you the sum of matching criteria

=SUMIF($A$2:$A$9,"="&A2,$G$2:$G$13)
 
Upvote 0
Hi AliGW

No doesn't work either sorry. I must not be explaining my self well or something.

I spent most of yesterday copy & paste values to make it work this time but next week, month or whenever new data is returned that process needs to be redone. Must be a simple way of using excel but as a pretty basic user that stays within safe bounds using match, index, lookups etc its down right confusing.

Sheet 1

CodeL1W1A1
R6871526912.00
R421576.51020.50
R57151973633.00
R61321171477.00
R12856152805.00
R3624245.52332.00
R6323106.52015.00
R76826461584.00
R324618488.00
R764576342.00
R6583684.51656.00
R43920561230.00
R58919971393.00
R14806480.00
R21913181048.00
R0219a1088864.00
R0078b968768.00
R7816081280.00
R1461396.2861.80
R24353463204.00
R24481564890.00
R3011227854.00
R0301a987686.00
R3872747.62082.40
R524971743.00
R129315.5170.50
R4911186.5767.00
R702494.51120.50

<colgroup><col><col><col><col></colgroup><tbody>
</tbody>


Sheet 2

CodeL1W1D1PRLGA1
R68710.50.51152
R6871.611.61152
R687103.3331152
R6873.5310.51152
R6871111152
R6876.616.61152
R687600.5302152
R68720.512152
R687160.582152
R68761.591152
R68740.522152
R68760.532152
R68727.5127.51152
R5714141519
R5711111519
R42380.5192157
R420001157
R5711.20.70.841519
R5717.11.812.783519
R57120001519
R57182.721.61519
R5715.61.68.961519
R571201201519
R5712241519
R5710001519
R57142.18.41519
R57171.28.41519
R57172141519
R5718.82.421.121519
R5717.52151519
R5718001519
R5713.52.17.351519
R5715.64.424.641519
R5717.7001519
R57130.46.7203.681519

<colgroup><col><col><col><col><col><col><col></colgroup><tbody>
</tbody>

<colgroup><col><col><col><col><col><col><col></colgroup><tbody>
</tbody>


How do i search sheet 1 Code column for R687 and return the corresponding value of A1 in sheet 1 (eg 912) and insert that into sheet 2 A1 column for each matching code entry?

For example in the above two data sheets i want to get the 912 from sheet 1 and place in sheet 2 A1 column where the two codes match.

Sorry but learning excel functions is like learning a new language.

thanks
 
Upvote 0
The following was posted just before the recent board trouble. It appears it not make to the board database. Here once again:

Let A:D of Sheet1 house the upper exhibit of post #7.
Let A:G of Sheet2 house the lower exhibit of post #7.

In D2 of Sheet2 enter:

=VLOOKUP($A2,Sheet1!A:D,MATCH(G$1,INDEX(Sheet1!A:D,1,0),0),0)
 
Upvote 0

Forum statistics

Threads
1,214,650
Messages
6,120,734
Members
448,987
Latest member
marion_davis

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top