Public Schedule Face-to-Face & Online Instructor-Led Training - View dates & book

STL - Formerly Best Training Solutions Through Learning
TrustPilot
Excellent
Request Callback We will call you back
0207 987 3777 Call for assistance
Your Basket Basket is empty
vlookup

ResolvedVersion 2010

Chris has attended:
Excel Advanced course

Vlookup formula

I'm currently using the below formula to look a list of numbers in another list of numbers and if found, output the minutes dialled for that number.

Its looking for the numbers in column G in column A, and if it finds them outputting the minutes dialled which are in column D

=IF(ISERROR(VLOOKUP(G13,$A$2:$D$386,1,FALSE))
,0,VLOOKUP(G13,$A$2:$D$386,4,FALSE))

The problem I have is that for the numbers that are in column G, here are more than one entry in Column A, and the lookup is only finding the first entry.

How can I edit this formula to get it to find all instances of each number in column A and sum all of the related entries in column D?

RE: Vlookup

Hello Chris,

Hope you enjoyed your Microsoft Excel Advanced course with Best STL.

Thank you for your question regarding the use of Vlookup.

Send me your file which contains only the data you are referring to and I will find the best solution to this problem. Unfortunately, Vlookup will always find the first item you are looking for so I will find a workaround which solve this issue.

My email is: rl@stl-training.co.uk




Have a great day.
Regards,

Rodney
Microsoft Office Specialist Trainer

RE: Vlookup

Hi Rodney,

Thanks for your reply.

I think ive found a solution. If I pivot the data first to get the totals and then run the lookup it should work.

Fingers crossed!

Kind regards,
Chris

RE: Vlookup

Hello Chris,

Did you have any joy with your proposed solution?


Have a great day.
Regards,

Rodney
Microsoft Office Specialist Trainer

RE: Vlookup

Hi Rodney,

Yes it seems to have worked :)

Regards,
Chris

Excel tip:

Quickly copy a formula across sheets

Suppose you have a formula in cell Sheet1!B2, say =A1*5%, that you wish to copy to cell B2 on Sheet2, Sheet3 and Sheet4. Instead of using copy and paste, try this: (1) Select Sheet1!B2. (2) Group Sheet1 with the worksheets Sheet2, Sheet3 and Sheet4 by holding down Ctrl and clicking on the tabs of the sheets to group them. (3) Press the F2 key, then immediately press Enter to copy the formula in Sheet1!B2 across the grouped sheets.

Remember to ungroup the sheets afterwards! Right-click on any tab and choose Ungroup Sheets to do that.

View all Excel hints and tips

Connect with us:

0207 987 3777

Call for assistance

Request Callback

We will call you back

Server loaded in 0.19 secs.