Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 23
Default Stuck and need help

I need to calculate and return a number in a cell based on the value in a
given cloumn. Here is what I need.

I have several packages waiting for return labels to be e-mailed. In column
L, if the package had a return label attached, the tracking number is
entered in the corrisponding cell (row X column L).

If the package did not have a return label attached "Waiting For Return
Label" is entered in (row X column L). I tried to figure out a conditional
formula that would add "1" to a cell for each value of "Waiting For Return
Label" but was unsuccessful.

Then I looked at VLOOKUP which might do what I need but I know next to
nothing about how to format VLOOKUP to make it work. Would someone who knows
Excel far better than me lend a hand.

Thanx

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 360
Default Stuck and need help

If I understand your question, in column L enter , enter
=IF(x="Waiting For Return Label",1,x) and replace the "x"s with
references to the range where the tracking number or text reside.

Cliff Edwards



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 23
Default Stuck and need help

Not quite.

The cell to get the value of adding the number of cells in column L, is M2.
So for example, if cell L39 has the value Waiting For Return Label, M2 would
equal 1, if L45 also has the value Waiting For Return Label, M2 would equal
2 and so on.


"ward376" wrote in message
...
If I understand your question, in column L enter , enter
=IF(x="Waiting For Return Label",1,x) and replace the "x"s with
references to the range where the tracking number or text reside.

Cliff Edwards




  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 360
Default Stuck and need help

=COUNTIF(L:L,"Waiting for Return Label")

Using the entire column for the range reference, as in the example,
may degrade performance.

Cliff Edwards

  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 23
Default Stuck and need help

Thanks it works as expected.

"ward376" wrote in message
...
=COUNTIF(L:L,"Waiting for Return Label")

Using the entire column for the range reference, as in the example,
may degrade performance.

Cliff Edwards




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
Got Stuck Ams Excel Programming 3 January 13th 08 06:39 PM
Help, please, I'm stuck Harvest Excel Discussion (Misc queries) 3 August 19th 06 03:28 AM
stuck darkbearpooh1 Excel Worksheet Functions 7 February 10th 06 10:21 PM
Stuck PaulOakley[_2_] Excel Programming 13 July 13th 05 05:54 PM
I'm stuck (again) Himszy Excel Programming 5 December 31st 04 08:17 PM


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