#1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 29
Default Lookup or IF?

Dear all,
Looking for your kind help on the below:

In a spreadsheet I have the following cols and rows:
Col B Col E Col F Col G Col L Col Q
Date Artnr Pcs Price Order# Formula
(=IF(AND(B5<NOW()-60;L5="");"Alarm!!!";""))

What I am looking for is the following:
if Alarm is true I would like Excel to show me the art#, pcs and price in a
separate worksheet. Should I use IF or Lookup?
Thanking you in advance,
KG, Eucalypta
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3,718
Default Lookup or IF?

=IF(ISNA(VLOOKUP(..........)),"",VLOOKUP(......... .))


"Eucalypta" wrote:

Dear all,
Looking for your kind help on the below:

In a spreadsheet I have the following cols and rows:
Col B Col E Col F Col G Col L Col Q
Date Artnr Pcs Price Order# Formula
(=IF(AND(B5<NOW()-60;L5="");"Alarm!!!";""))

What I am looking for is the following:
if Alarm is true I would like Excel to show me the art#, pcs and price in a
separate worksheet. Should I use IF or Lookup?
Thanking you in advance,
KG, Eucalypta

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 29
Default Lookup or IF?

I am not sure I understand what you mean. Vlookup(.....). Lookup what?
KG, Eucalypta

"Teethless mama" wrote:

=IF(ISNA(VLOOKUP(..........)),"",VLOOKUP(......... .))


"Eucalypta" wrote:

Dear all,
Looking for your kind help on the below:

In a spreadsheet I have the following cols and rows:
Col B Col E Col F Col G Col L Col Q
Date Artnr Pcs Price Order# Formula
(=IF(AND(B5<NOW()-60;L5="");"Alarm!!!";""))

What I am looking for is the following:
if Alarm is true I would like Excel to show me the art#, pcs and price in a
separate worksheet. Should I use IF or Lookup?
Thanking you in advance,
KG, Eucalypta

  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Max Max is offline
external usenet poster
 
Posts: 9,221
Default Lookup or IF?

One way which does it for your orig. posting

Illustrated in this sample:
http://www.freefilehosting.net/download/3bjj4
eucalypta.xls

Source data is assumed in Sheet1, as posted, data from row5 down

In Q5:
=IF(B5="","",IF(AND(B5<TODAY()-60,L5=""),"Alarm!!!",""))

In R5:
=IF(Q5="Alarm!!!",ROWS($1:1),"")
Select Q5:R5, copy down to cover the max expected extent of source data

Then in another Sheet2,

In B2:
=IF(ROWS($1:1)COUNT(Sheet1!$R$5:$R$100),"",
INDEX(Sheet1!E$5:E$100,SMALL(Sheet1!$R$5:$R$100,RO WS($1:1))))
Copy B2 across to D2, fill down as far as required. Adapt to suit. Cols B to
D will return the required Art#, PCs & Price which satisfies the alert
criteria monitored in Sheet1's cols Q & R.
--
Max
Singapore
http://savefile.com/projects/236895
xdemechanik
---
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
Get Cell Address From Lookup (Alternative to Lookup) ryguy7272 Excel Worksheet Functions 12 September 28th 07 10:36 PM
Join 2 Lists - Lookup value in 1 list & use result in 2nd lookup JBush Excel Worksheet Functions 3 January 3rd 07 11:14 PM
Sumproduct - Condition based on lookup of a Lookup Hari Excel Discussion (Misc queries) 12 May 31st 06 09:28 AM
Pivot table doing a lookup without using the lookup function? NGASGELI Excel Discussion (Misc queries) 0 August 2nd 05 05:08 AM
How do I lookup and return different values when the lookup value. kg Excel Discussion (Misc queries) 1 January 20th 05 12:53 AM


All times are GMT +1. The time now is 05:43 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"