LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
DM
 
Posts: n/a
Default Formula to look up a column and paste results in another column

I've tried to use Vlookup for this but was unable to get it working.
Here's what I need:

In column 3 I have:

dog
dog1
cat
cat2

I'm trying to get an inventory management tool by looking at column 3 and
subtracting 1 from the previous row, so I would have:

Column 3 Column 4 for dog Column 5 for dog1...
100
dog 99
dog1 0
cat 0
cat2 0
dog 98

So, if I have "dog" in row 3 then I get a formula to look up "dog" then
subtract 1 from the previous row (or previous valid number, maybe not 0) and
give me the result, and if it is not "dog" it'd show a 0.

Hope I was clear enough... PLEASE HELP!
 
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
Macro to find text string in a column and paste data in another nicolascap Excel Discussion (Misc queries) 8 March 14th 06 03:13 PM
Paste results consecutively within column (based off other worksheet) [email protected] Excel Worksheet Functions 5 March 13th 06 11:54 AM
Effective method to paste array formula kuansheng Excel Worksheet Functions 2 February 2nd 06 12:47 AM
Macro to open workbook and copy and paste values in to orig workbo Dena X Excel Worksheet Functions 1 December 15th 05 11:13 PM
Entering Same Formula to A Full Staring from Say Row 5 Column..... Dermot Excel Worksheet Functions 4 November 16th 05 09:56 AM


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