Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1
Default looking for a function that hopefully exist

i want to lookup a value in a column on a worksheet and if that value is true
i want to take that information in that row and insert it into another
worksheet but if that value is false i want to just skip that row so i don't
have rows of just zeros across them. thanks
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Max Max is offline
external usenet poster
 
Posts: 9,221
Default looking for a function that hopefully exist

Here's a simple, fast, non-array formulas set up to deliver the desired
functionalities
Assume source data in Sheet1, cols A to C, data from row2 down
Assume the key col = col A (names, say)
In another sheet,
A2 will house the input for the name of interest, eg: ABC
In B2: =IF(Sheet1!A2=A$2,ROW(),"")
This is the criteria col. Modify it easily to suit whatever condition you
may have.

In C2:
=IF(ROWS($1:1)COUNT($B:$B),"",INDEX(Sheet1!A:A,SM ALL($B:$B,ROWS($1:1))))
Copy C2 across to E2. Select & copy B2:E2 down to cover the max expected
extent of source data in Sheet1, eg down to E50?. Minimize/hide col B. Cols C
to E will auto-return only the source lines for the name input in A2, all
neatly packed at the top. When you change the name input in A2, it'll return
accordingly (you could have a simple DV droplist for easier selection of
names in A2). Success? hit the YES below.
--
Max
Singapore
---
"formula_hardrocker" wrote:
i want to lookup a value in a column on a worksheet and if that value is true
i want to take that information in that row and insert it into another
worksheet but if that value is false i want to just skip that row so i don't
have rows of just zeros across them. thanks

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
Excel Function for select data which NOT exist from the list wilchong via OfficeKB.com New Users to Excel 18 May 6th 08 07:58 AM
SUMDIVISION formula function - does it exist? Peter A Davidson Excel Worksheet Functions 6 January 3rd 08 05:46 PM
Exist a function to... 0xC00D11CD Excel Worksheet Functions 3 May 22nd 06 12:19 PM
Does such a function exist ? Teebee Excel Worksheet Functions 3 January 11th 06 01:34 PM
COUNTIF function when 2 conditions exist? Inquiring Minds Excel Worksheet Functions 1 November 29th 05 06:09 PM


All times are GMT +1. The time now is 05:24 PM.

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"