Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 33
Default How to make a value only show at the uppermost row for the same ID

Hi all:
I have this problem. I want to write a formula in award column, so that the
"Y" only appears on the first occurance of when user ID have Y in Data, no
other place after first occurance. How can I do that? Hope you can give me
some advice. Thanks much.

ID Data Award
1 Y Y
1 N
1 Y
1 Y
2 N
2 Y Y
2 Y
2 Y


  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
JJ JJ is offline
external usenet poster
 
Posts: 122
Default How to make a value only show at the uppermost row for the same ID

Don't know if it is the most elegant solution, but creat a hidden column with
ID & Data concatenated. Order your data by ID then by Data. Your award
formula is if(and(Data="Y",Data(row current)<Data(row previous)),"Y",""

in C2 = A2 & B2
Order by ID then Data ascending
d2 = if(and(B2="Y",D2<D1),"Y",""
copy C2 and D2 down to the end of your data
hide column C

Maybe someone will have a better solution. Good luck.
"luvgreen" wrote:

Hi all:
I have this problem. I want to write a formula in award column, so that the
"Y" only appears on the first occurance of when user ID have Y in Data, no
other place after first occurance. How can I do that? Hope you can give me
some advice. Thanks much.

ID Data Award
1 Y Y
1 N
1 Y
1 Y
2 N
2 Y Y
2 Y
2 Y


  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
bj bj is offline
external usenet poster
 
Posts: 1,397
Default How to make a value only show at the uppermost row for the same ID

try
=IF(AND(B2="Y",SUMPRODUCT(--($A$1:A2=A2),--($B$1:B2="Y"))=1),"Y","")

"luvgreen" wrote:

Hi all:
I have this problem. I want to write a formula in award column, so that the
"Y" only appears on the first occurance of when user ID have Y in Data, no
other place after first occurance. How can I do that? Hope you can give me
some advice. Thanks much.

ID Data Award
1 Y Y
1 N
1 Y
1 Y
2 N
2 Y Y
2 Y
2 Y


  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 33
Default Thank both JJ and BJ. It works. Thank you so much!!


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
How do I make H = -1 on a worksheet, yet show H? Guybon Berry Excel Worksheet Functions 2 March 14th 06 04:44 PM
How to make an Add-in show under Run-Macro mliungman Excel Discussion (Misc queries) 4 January 16th 06 03:35 PM
How to make first row to show on every page Minnow Excel Discussion (Misc queries) 5 September 22nd 05 06:56 PM
Make an =if show - instead of 0 Cube Farmer Excel Worksheet Functions 3 August 22nd 05 08:58 PM
how do I make make my hyperlinks show the email address they are . Dustin Excel Discussion (Misc queries) 0 January 13th 05 01:39 AM


All times are GMT +1. The time now is 09:40 AM.

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

About Us

"It's about Microsoft Excel"