Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 01-03-2014, 01:56 AM
JulieB JulieB is offline IF statement, AND & Vlookup on 3 condition that's not in numeric Windows 7 32bit IF statement, AND & Vlookup on 3 condition that's not in numeric Office 2010 32bit
Novice
IF statement, AND & Vlookup on 3 condition that's not in numeric
 
Join Date: Jan 2014
Posts: 6
JulieB is on a distinguished road
Default IF statement, AND & Vlookup on 3 condition that's not in numeric

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!
Reply With Quote
  #2  
Old 01-03-2014, 02:18 AM
Pecoflyer's Avatar
Pecoflyer Pecoflyer is offline IF statement, AND & Vlookup on 3 condition that's not in numeric Windows 7 64bit IF statement, AND & Vlookup on 3 condition that's not in numeric Office 2010 64bit
Expert
 
Join Date: Nov 2011
Location: Brussels Belgium
Posts: 2,920
Pecoflyer has a reputation beyond reputePecoflyer has a reputation beyond reputePecoflyer has a reputation beyond reputePecoflyer has a reputation beyond reputePecoflyer has a reputation beyond reputePecoflyer has a reputation beyond reputePecoflyer has a reputation beyond reputePecoflyer has a reputation beyond reputePecoflyer has a reputation beyond reputePecoflyer has a reputation beyond reputePecoflyer has a reputation beyond repute
Default

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
Reply With Quote
  #3  
Old 01-05-2014, 07:22 PM
JulieB JulieB is offline IF statement, AND & Vlookup on 3 condition that's not in numeric Windows 7 32bit IF statement, AND & Vlookup on 3 condition that's not in numeric Office 2010 32bit
Novice
IF statement, AND & Vlookup on 3 condition that's not in numeric
 
Join Date: Jan 2014
Posts: 6
JulieB is on a distinguished road
Default

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
Reply With Quote
  #4  
Old 01-05-2014, 07:36 PM
JulieB JulieB is offline IF statement, AND & Vlookup on 3 condition that's not in numeric Windows 7 32bit IF statement, AND & Vlookup on 3 condition that's not in numeric Office 2010 32bit
Novice
IF statement, AND & Vlookup on 3 condition that's not in numeric
 
Join Date: Jan 2014
Posts: 6
JulieB is on a distinguished road
Default Attached worksheet

I have attached the excel worksheet.
Hopefully it is viewable.

Thanks,
Julie
Attached Files
File Type: xlsx Book 4.xlsx (11.5 KB, 13 views)
Reply With Quote
  #5  
Old 01-05-2014, 11:40 PM
SteveWcg SteveWcg is offline IF statement, AND & Vlookup on 3 condition that's not in numeric Windows 7 64bit IF statement, AND & Vlookup on 3 condition that's not in numeric Office 2013
Novice
 
Join Date: Jun 2013
Location: Sydney Australia
Posts: 22
SteveWcg is on a distinguished road
Default

Quote:
Originally Posted by JulieB View Post
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
Attachment 4023

Attachment 4024

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!
I'm sure one of the others will have a more sensible answer

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
Attached Images
File Type: png book4.png (8.3 KB, 14 views)
Attached Files
File Type: xlsx Book 4_1.xlsx (13.4 KB, 13 views)
Reply With Quote
  #6  
Old 01-06-2014, 01:23 AM
Pecoflyer's Avatar
Pecoflyer Pecoflyer is offline IF statement, AND & Vlookup on 3 condition that's not in numeric Windows 7 64bit IF statement, AND & Vlookup on 3 condition that's not in numeric Office 2010 64bit
Expert
 
Join Date: Nov 2011
Location: Brussels Belgium
Posts: 2,920
Pecoflyer has a reputation beyond reputePecoflyer has a reputation beyond reputePecoflyer has a reputation beyond reputePecoflyer has a reputation beyond reputePecoflyer has a reputation beyond reputePecoflyer has a reputation beyond reputePecoflyer has a reputation beyond reputePecoflyer has a reputation beyond reputePecoflyer has a reputation beyond reputePecoflyer has a reputation beyond reputePecoflyer has a reputation beyond repute
Default

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)
Be aware that some of the fiscal period data seems to have trailing edges.
That is why the trim function was used
Attached Files
File Type: xlsx revenue.xlsx (11.3 KB, 10 views)
__________________
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
Reply With Quote
  #7  
Old 01-06-2014, 02:43 AM
JulieB JulieB is offline IF statement, AND & Vlookup on 3 condition that's not in numeric Windows 7 32bit IF statement, AND & Vlookup on 3 condition that's not in numeric Office 2010 32bit
Novice
IF statement, AND & Vlookup on 3 condition that's not in numeric
 
Join Date: Jan 2014
Posts: 6
JulieB is on a distinguished road
Default

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!
Attached Files
File Type: xlsx Book 4.xlsx (11.6 KB, 10 views)
Reply With Quote
  #8  
Old 01-06-2014, 06:01 AM
Pecoflyer's Avatar
Pecoflyer Pecoflyer is offline IF statement, AND & Vlookup on 3 condition that's not in numeric Windows 7 64bit IF statement, AND & Vlookup on 3 condition that's not in numeric Office 2010 64bit
Expert
 
Join Date: Nov 2011
Location: Brussels Belgium
Posts: 2,920
Pecoflyer has a reputation beyond reputePecoflyer has a reputation beyond reputePecoflyer has a reputation beyond reputePecoflyer has a reputation beyond reputePecoflyer has a reputation beyond reputePecoflyer has a reputation beyond reputePecoflyer has a reputation beyond reputePecoflyer has a reputation beyond reputePecoflyer has a reputation beyond reputePecoflyer has a reputation beyond reputePecoflyer has a reputation beyond repute
Default

Like this ?
Attached Files
File Type: xlsx revenue.xlsx (11.3 KB, 14 views)
__________________
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
Reply With Quote
  #9  
Old 01-07-2014, 10:34 PM
JulieB JulieB is offline IF statement, AND & Vlookup on 3 condition that's not in numeric Windows 7 32bit IF statement, AND & Vlookup on 3 condition that's not in numeric Office 2010 32bit
Novice
IF statement, AND & Vlookup on 3 condition that's not in numeric
 
Join Date: Jan 2014
Posts: 6
JulieB is on a distinguished road
Default

Hi Pecoflyer,

It doesn't works for my work with the formula given.
Reply With Quote
  #10  
Old 01-08-2014, 01:28 AM
Pecoflyer's Avatar
Pecoflyer Pecoflyer is offline IF statement, AND & Vlookup on 3 condition that's not in numeric Windows 7 64bit IF statement, AND & Vlookup on 3 condition that's not in numeric Office 2010 64bit
Expert
 
Join Date: Nov 2011
Location: Brussels Belgium
Posts: 2,920
Pecoflyer has a reputation beyond reputePecoflyer has a reputation beyond reputePecoflyer has a reputation beyond reputePecoflyer has a reputation beyond reputePecoflyer has a reputation beyond reputePecoflyer has a reputation beyond reputePecoflyer has a reputation beyond reputePecoflyer has a reputation beyond reputePecoflyer has a reputation beyond reputePecoflyer has a reputation beyond reputePecoflyer has a reputation beyond repute
Default

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
Reply With Quote
  #11  
Old 01-08-2014, 11:47 AM
BobBridges's Avatar
BobBridges BobBridges is offline IF statement, AND & Vlookup on 3 condition that's not in numeric Windows 7 64bit IF statement, AND & Vlookup on 3 condition that's not in numeric Office 2010 32bit
Expert
 
Join Date: May 2013
Location: USA
Posts: 700
BobBridges has a spectacular aura aboutBobBridges has a spectacular aura about
Default

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.
Reply With Quote
  #12  
Old 01-08-2014, 12:39 PM
Pecoflyer's Avatar
Pecoflyer Pecoflyer is offline IF statement, AND & Vlookup on 3 condition that's not in numeric Windows 7 64bit IF statement, AND & Vlookup on 3 condition that's not in numeric Office 2010 64bit
Expert
 
Join Date: Nov 2011
Location: Brussels Belgium
Posts: 2,920
Pecoflyer has a reputation beyond reputePecoflyer has a reputation beyond reputePecoflyer has a reputation beyond reputePecoflyer has a reputation beyond reputePecoflyer has a reputation beyond reputePecoflyer has a reputation beyond reputePecoflyer has a reputation beyond reputePecoflyer has a reputation beyond reputePecoflyer has a reputation beyond reputePecoflyer has a reputation beyond reputePecoflyer has a reputation beyond repute
Default

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
Reply With Quote
  #13  
Old 01-08-2014, 03:06 PM
SteveWcg SteveWcg is offline IF statement, AND & Vlookup on 3 condition that's not in numeric Windows 7 64bit IF statement, AND & Vlookup on 3 condition that's not in numeric Office 2013
Novice
 
Join Date: Jun 2013
Location: Sydney Australia
Posts: 22
SteveWcg is on a distinguished road
Default

Quote:
Originally Posted by JulieB View Post
Hi Pecoflyer,

It doesn't works for my work with the formula given.
You need to go google Product() as an array vs Range as it confuses the buggery out of me every time I try to use it.

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.
Reply With Quote
  #14  
Old 01-09-2014, 10:33 PM
macropod's Avatar
macropod macropod is offline IF statement, AND & Vlookup on 3 condition that's not in numeric Windows 7 32bit IF statement, AND & Vlookup on 3 condition that's not in numeric Office 2010 32bit
Administrator
 
Join Date: Dec 2010
Location: Canberra, Australia
Posts: 22,363
macropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond repute
Default

Quote:
Originally Posted by JulieB View Post
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.
You should be able to use:
Code:
=SUMPRODUCT((Revenue!A:A=A2)*(Revenue!C:C=C2)*(Revenue!D:D=D2),Revenue!E:E)
or, if you want to be able to copy the formula to other columns as well:
Code:
=SUMPRODUCT((Revenue!$A:$A=Summary!$A2)*(Revenue!$C:$C=Summary!$C2)*(Revenue!$D:$D=Summary!$D2),Revenue!E:E)
in Summary!G2 and copy down as far as needed. However, you have a data entry error in Summary!C2, which has a space after 'FY12 Q1', which is why Pecoflyer had to add the TRIM statements. This highlights the crucial issue that data entry errors can invalidate the results. As they used to say: garbage in : garbage out.
__________________
Cheers,
Paul Edstein
[Fmr MS MVP - Word]
Reply With Quote
  #15  
Old 01-09-2014, 10:36 PM
macropod's Avatar
macropod macropod is offline IF statement, AND & Vlookup on 3 condition that's not in numeric Windows 7 32bit IF statement, AND & Vlookup on 3 condition that's not in numeric Office 2010 32bit
Administrator
 
Join Date: Dec 2010
Location: Canberra, Australia
Posts: 22,363
macropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond repute
Default

Quote:
Originally Posted by SteveWcg View Post
You need to go google Product() as an array vs Range as it confuses the buggery out of me every time I try to use it.

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.
If you study the solution posted by Pecoflyer, you'll see there is no use of PRODUCT(), or array formulae, or VLOOKUP(), because none of them is necessary.
__________________
Cheers,
Paul Edstein
[Fmr MS MVP - Word]
Reply With Quote
Reply



Similar Threads
Thread Thread Starter Forum Replies Last Post
IF statement, AND & Vlookup on 3 condition that's not in numeric Macro - replace with condition ubns Word VBA 1 05-02-2012 12:52 AM
IF statement, AND & Vlookup on 3 condition that's not in numeric check with condition karti Word 2 03-15-2011 06:06 AM
IF statement, AND & Vlookup on 3 condition that's not in numeric Formula in a Cell with condition? Learner7 Excel 1 07-19-2010 10:10 AM
IF statement, AND & Vlookup on 3 condition that's not in numeric Vlookup and If statement problem bunnygum Excel 1 03-24-2009 05:10 AM
Retrict Method Condition markp Outlook 0 12-22-2005 05:38 PM

Other Forums: Access Forums

All times are GMT -7. The time now is 12:17 PM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.
Search Engine Optimisation provided by DragonByte SEO (Lite) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
MSOfficeForums.com is not affiliated with Microsoft