![]() |
|
![]() |
|
Thread Tools | Display Modes |
#1
|
|||
|
|||
![]()
Say I have an excel file which looks like below:
![]() How do I get values of all the columns in below table fields Quarter-1, Quarter-2, Quarter-3, Quarter-4 in one go, where Quarter-1 is the sum of the values from Jan--2018 to Mar--2018 in the above table, Quarter-2 is the sum of the values from Apr--2018 to Jun--2018 etc. Now, I've written the below formula's in Quarter-1, Quarter-2, Quarter-3, Quarter-4 respectively Code:
{=SUM(VLOOKUP([@Name],Table1[[#All],[Name]:[Dec--2018]],{2,3,4},0))} {=SUM(VLOOKUP([@Name],Table1[[#All],[Name]:[Dec--2018]],{5,6,7},0))} {=SUM(VLOOKUP([@Name],Table1[[#All],[Name]:[Dec--2018]],{8,9,10},0))} {=SUM(VLOOKUP([@Name],Table1[[#All],[Name]:[Dec--2018]],{11,12,13},0))} |
#2
|
||||
|
||||
![]()
Hi
as external links are notoriously unsafe , that not all members can access them, please post your file on the forum. Thank you
__________________
Using O365 v2503 - Did you know you can thank someone who helped you? Click on the tiny scale in the right upper hand corner of your helper's post |
#3
|
|||
|
|||
![]() Quote:
I've attached the sample file and removed the external download link ![]() |
#4
|
|||
|
|||
![]()
What about the attached?
|
#5
|
|||
|
|||
![]()
Here is a version with single formula (I used OP's 2nd table)
|
#6
|
|||
|
|||
![]()
Thanks both xor and ArviLaanemets,
Do you mind explaining your respective codes? ![]() |
#7
|
|||
|
|||
![]()
See explanation in the attached workbook.
|
#8
|
|||
|
|||
![]()
Here you go!
|
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
![]() |
praboos2001 | Excel | 6 | 11-15-2016 04:40 AM |
Need a formula (possibly something like VLOOKUP) that will return multiple results. | SilverUnicorn79 | Excel | 8 | 08-16-2016 01:34 PM |
![]() |
mikey386 | Excel | 1 | 12-18-2014 01:59 AM |
![]() |
ladygogo78 | Excel | 3 | 10-22-2012 12:28 AM |
![]() |
OTPM | Excel | 11 | 05-23-2011 11:18 AM |