A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Excel » Worksheet Functions
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

IF AND VLOOKUP formula needed



 
 
Thread Tools Display Modes
  #1  
Old May 27th, 2010, 09:55 PM posted to microsoft.public.excel.worksheet.functions
Carolina
external usenet poster
 
Posts: 49
Default IF AND VLOOKUP formula needed

I need to do a formula where I need to determine if the size of C12 or C13 is
greater or less than E12 or E13 respectively. Knowing that I need for the
formula to do a vlookup into the "Non Direct Care" tab and if there is an "x"
in column J to multiply the value in cell B12 or B13 times the values in J3
or J4 times 14 days and then divide it by 60 (J3 is if less than E12 or E13
and J4 is if greater than E12 or E13). If there is NO "x" on column "J" I
need it to return a "0".

This is what I have and it is returning values regardless if there is an "x"
or not.

=IF(AND(C12=E12,VLOOKUP($B$4,'Non Direct
Care'!$A$1:$S$123,10,FALSE)="x"),$B$12*'Non Direct Care'!J3*14/60,$B$12*'Non
Direct Care'!J4*14/60)

Any help will be much appreciated.

Carolina
  #2  
Old May 27th, 2010, 10:31 PM posted to microsoft.public.excel.worksheet.functions
Tom-S[_2_]
external usenet poster
 
Posts: 68
Default IF AND VLOOKUP formula needed

It's a little confusing trying to understand your first set of conditions -
where you say C12 or C13 greater or less than E12 or E13 respectively.

Could you clarify that part a little?

Regards,

Tom


"Carolina" wrote:

I need to do a formula where I need to determine if the size of C12 or C13 is
greater or less than E12 or E13 respectively. Knowing that I need for the
formula to do a vlookup into the "Non Direct Care" tab and if there is an "x"
in column J to multiply the value in cell B12 or B13 times the values in J3
or J4 times 14 days and then divide it by 60 (J3 is if less than E12 or E13
and J4 is if greater than E12 or E13). If there is NO "x" on column "J" I
need it to return a "0".

This is what I have and it is returning values regardless if there is an "x"
or not.

=IF(AND(C12=E12,VLOOKUP($B$4,'Non Direct
Care'!$A$1:$S$123,10,FALSE)="x"),$B$12*'Non Direct Care'!J3*14/60,$B$12*'Non
Direct Care'!J4*14/60)

Any help will be much appreciated.

Carolina

 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 07:25 AM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.