![]() |
#1
|
|||
|
|||
![]()
Hi,
I read some of the thread in Excel forum mostly explains IF statement, AND & Vlookup when the conditions are numeric. I'm not sure if my request is possible. Would appreciate if someone can advise. Here's the screen shot and request queries. 2 sheets - Revenue and Summary Summary worksheet.JPG Revenue worksheet.JPG I need to find out the revenue $ [G2] for SAP No [Cell A2] according to Fiscal Period - FY12 Q1 [Cell C2] in Summary sheet from Revenue sheet which contains list of Revenue arranged according to Fiscal Period and SAP No. I tried IF statement and Vlookup and/or add on AND conditions but not feasible. Appreciate advise there's any alternative solution apart from checking one by one as my data is huge. Many Thanks! |
#2
|
||||
|
||||
![]()
Hi and welcome
could you please post a sample sheet instead of a picture? It's much easier to work on - Thx
__________________
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
|
|||
|
|||
![]()
Hi Pecoflyer,
I'm new to this forum. I don't know how to attached the sample sheet. Can you advise me please. Thanks, Julie |
#4
|
|||
|
|||
![]()
I have attached the excel worksheet.
Hopefully it is viewable. Thanks, Julie |
#5
|
|||
|
|||
![]() Quote:
![]() However try this Summarise the data in Revenue as there are two lines for 1000730 for FY12 Q1 Then as a workaround, this is where the experts will shone, use in G2 =IF(ISNA(VLOOKUP(A2&C2&"Total",Revenue!$D$1:$F$39, 3,FALSE)),0,VLOOKUP(A2&C2&"Total",Revenue!$D$1:$F$ 39,3,FALSE)) and copy down. Gives the correct answer |
#6
|
||||
|
||||
![]()
Does the attached help ?
Code:
=SUMPRODUCT((Revenue!$A$2:$A$21=Summary!A2)*(Revenue!$C$2:$C$21=TRIM(Summary!C2))*Revenue!$E$2:$E$21) That is why the trim function was used
__________________
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 |
#7
|
|||
|
|||
![]()
Thanks SteveWcg and Pecoflyer for the quick reply. I was wondering why both of you gave me the sum of 2 quarters AR numbers. Apparently the summary data given is incorrect. The fiscal period is arranged in quarterly manner. Apologies for this error made. I have reattached the worksheet and highlighted the Summary sheet and Revenue sheet for FY12Q1 AR numbers in yellow while FY12Q2 AR numbers in blue. Could you advise how to formulate the condition to get the Revenue number from Revenue sheet.
Thanks a lot! |
#8
|
||||
|
||||
![]()
Like this ?
__________________
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 |
#9
|
|||
|
|||
![]()
Hi Pecoflyer,
It doesn't works for my work with the formula given. |
#10
|
||||
|
||||
![]()
What do you mean by " It doesn't work" ?
__________________
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 |
#11
|
||||
|
||||
![]()
LOL. Peco, I once was talking to a user over the phone:
Me: So did you try what I gave you? User: Yeah, but it didn't work. Me: "Didn't work"? What, exactly did it do. User: Nothing. Me: No, it didn't do nothing, it did something. Did the screen go black? Did the computer start to smoke? It probably displayed an error message? User: Oh, yeah, an error message. Me: What did the error message say? User: Oh, it said some damn thing. He was a friend of mine, and I like him. But really, he'd heard from me on this subject often enough already that he should have known better than to call me without looking at the error message, just to tell me "it didn't work". JulieB, you gotta give symptoms or the diagnostician can't help. You can't tell the doctor simply "I'm sick" and expect him to know whether he needs to give you some aspirin, remove your appendix or refer you to an oncologist. |
#12
|
||||
|
||||
![]()
Nice one Bob
![]() Sometimes frustrating one has to drag information out of an OP, the latter forgetting he gets FREE help provided by people working on their spare time ![]()
__________________
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 |
#13
|
|||
|
|||
![]() Quote:
To make it work on the work spreadsheet you need to set the array, can't remember how, or use the vlookup trick of concatenating the key in the target sheet. There's a way to do a backwards vlookup but forgotten how. |
#14
|
||||
|
||||
![]() Quote:
Code:
=SUMPRODUCT((Revenue!A:A=A2)*(Revenue!C:C=C2)*(Revenue!D:D=D2),Revenue!E:E) Code:
=SUMPRODUCT((Revenue!$A:$A=Summary!$A2)*(Revenue!$C:$C=Summary!$C2)*(Revenue!$D:$D=Summary!$D2),Revenue!E:E)
__________________
Cheers, Paul Edstein [Fmr MS MVP - Word] |
#15
|
||||
|
||||
![]() Quote:
__________________
Cheers, Paul Edstein [Fmr MS MVP - Word] |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
![]() |
ubns | Word VBA | 1 | 05-02-2012 12:52 AM |
![]() |
karti | Word | 2 | 03-15-2011 06:06 AM |
![]() |
Learner7 | Excel | 1 | 07-19-2010 10:10 AM |
![]() |
bunnygum | Excel | 1 | 03-24-2009 05:10 AM |
Retrict Method Condition | markp | Outlook | 0 | 12-22-2005 05:38 PM |