#1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 349
Default IF / Vlookup formula

Hi all

I have the following formula

=IF(ISNA(VLOOKUP(I14,Paid!A:B,2,FALSE)),IF($K14<1, 5,3),(VLOOKUP(I14,Paid!A:B,2,FALSE)))

This is used to check if invoice no is on paid sheet then enter 1, if not
then depending on age of invoice (column K) then either 5 or 3.

I need to add another if function - =if(left(T14,8)"Promised",2 - this is to
show payments due -
=if(left(T14,8)"Promised",2,IF(ISNA(VLOOKUP(I14,Pa id!A:B,2,FALSE)),IF($K14<1,5,3),(VLOOKUP(I14,Paid! A:B,2,FALSE))))

Conflicts when invoice is paid and invoice No appears on paid sheet - still
remains as 2.

Order of checking should be: - check if paid if yes then 1 - if no then
check if promised, if yes then 2, if no then check age, 5 if <1 3 if1.

Any ideas? or if not best explained please let me know
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 5,441
Default IF / Vlookup formula

Peter,

Try this:

=IF(NOT(ISNA(VLOOKUP(I14,Paid!A:B,2,FALSE))),VLOOK UP(I14,Paid!A:B,2,FALSE),IF(LEFT(T14,8)="Promised" ,2,IF($K14<1,5,3)))

HTH,
Bernie
MS Excel MVP


"Peter" wrote in message
...
Hi all

I have the following formula

=IF(ISNA(VLOOKUP(I14,Paid!A:B,2,FALSE)),IF($K14<1, 5,3),(VLOOKUP(I14,Paid!A:B,2,FALSE)))

This is used to check if invoice no is on paid sheet then enter 1, if not
then depending on age of invoice (column K) then either 5 or 3.

I need to add another if function - =if(left(T14,8)"Promised",2 - this is
to
show payments due -
=if(left(T14,8)"Promised",2,IF(ISNA(VLOOKUP(I14,Pa id!A:B,2,FALSE)),IF($K14<1,5,3),(VLOOKUP(I14,Paid! A:B,2,FALSE))))

Conflicts when invoice is paid and invoice No appears on paid sheet -
still
remains as 2.

Order of checking should be: - check if paid if yes then 1 - if no then
check if promised, if yes then 2, if no then check age, 5 if <1 3 if1.

Any ideas? or if not best explained please let me know


  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 349
Default IF / Vlookup formula

=IF(ISNA(VLOOKUP(I14,Paid!A:B,2,FALSE)),IF(LEFT(T1 4,8)="Promised",2,IF($K14<1,5,3)),(VLOOKUP(I14,Pai d!A:B,2,FALSE)))

Got it!! Just had to re-arrange the brackets...always helps :)

"Peter" wrote:

Hi all

I have the following formula

=IF(ISNA(VLOOKUP(I14,Paid!A:B,2,FALSE)),IF($K14<1, 5,3),(VLOOKUP(I14,Paid!A:B,2,FALSE)))

This is used to check if invoice no is on paid sheet then enter 1, if not
then depending on age of invoice (column K) then either 5 or 3.

I need to add another if function - =if(left(T14,8)"Promised",2 - this is to
show payments due -
=if(left(T14,8)"Promised",2,IF(ISNA(VLOOKUP(I14,Pa id!A:B,2,FALSE)),IF($K14<1,5,3),(VLOOKUP(I14,Paid! A:B,2,FALSE))))

Conflicts when invoice is paid and invoice No appears on paid sheet - still
remains as 2.

Order of checking should be: - check if paid if yes then 1 - if no then
check if promised, if yes then 2, if no then check age, 5 if <1 3 if1.

Any ideas? or if not best explained please let me know

  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 349
Default IF / Vlookup formula

Hi Bernie

Thank you for taking the time to help me on this one - but somehow I managed
it (just a matter of re-arranging the brackets...)

=IF(ISNA(VLOOKUP(I14,Paid!A:B,2,FALSE)),IF(LEFT(T1 4,8)="Promised",2,IF($K14<1,5,3)),(VLOOKUP(I14,Pai d!A:B,2,FALSE)))

"Bernie Deitrick" wrote:

Peter,

Try this:

=IF(NOT(ISNA(VLOOKUP(I14,Paid!A:B,2,FALSE))),VLOOK UP(I14,Paid!A:B,2,FALSE),IF(LEFT(T14,8)="Promised" ,2,IF($K14<1,5,3)))

HTH,
Bernie
MS Excel MVP


"Peter" wrote in message
...
Hi all

I have the following formula

=IF(ISNA(VLOOKUP(I14,Paid!A:B,2,FALSE)),IF($K14<1, 5,3),(VLOOKUP(I14,Paid!A:B,2,FALSE)))

This is used to check if invoice no is on paid sheet then enter 1, if not
then depending on age of invoice (column K) then either 5 or 3.

I need to add another if function - =if(left(T14,8)"Promised",2 - this is
to
show payments due -
=if(left(T14,8)"Promised",2,IF(ISNA(VLOOKUP(I14,Pa id!A:B,2,FALSE)),IF($K14<1,5,3),(VLOOKUP(I14,Paid! A:B,2,FALSE))))

Conflicts when invoice is paid and invoice No appears on paid sheet -
still
remains as 2.

Order of checking should be: - check if paid if yes then 1 - if no then
check if promised, if yes then 2, if no then check age, 5 if <1 3 if1.

Any ideas? or if not best explained please let me know



Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Alternative formula to the vlookup formula? Victor Excel Worksheet Functions 2 May 12th 08 04:38 PM
convert vlookup formula to link formula AFA Excel Worksheet Functions 0 February 20th 08 04:24 AM
Excel 2002 VLOOKUP formula or other formula Serge Excel Discussion (Misc queries) 4 February 26th 07 03:56 PM
a possible vlookup formula....help changetires Excel Discussion (Misc queries) 0 June 23rd 06 02:05 AM
VLOOKUP Formula TUNGANA KURMA RAJU Excel Discussion (Misc queries) 1 March 20th 06 03:01 PM


All times are GMT +1. The time now is 03:42 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"