Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.newusers
marcoR2D2
 
Posts: n/a
Default select products to order-in other sheet total num of that product reduced


Hi,

I'm excel beginner,and I'm facing a problem I cannot solve.
I want to enter some values(IDs,numbers) in rows of one sheet,and
(immediately or on button click) the corresponding row(by ID) in the
other sheet to be modified.How can i do that?

_More_detailed_explanation_
I attached a very small .xls example of what I'm trying to do:
- I have two worksheets,one is a simple product list,other a simple
order list
- Problem: in the order sheet i select *product ID* (from a list),and
number of products i order; in products sheet total number of that
product should be reduced for the number of products that are ordered.
(for example,if i had 100 shirts in products sheet,when 10 shirts are
ordered in order sheet,90 should be left in products sheet).

One more thing,in the order sheet i can order hats first,then
shirts,then sneakers,so random order-i dont know what is ordered in
which row.

I guess I need some macro to do that...

Thanx in advance


+-------------------------------------------------------------------+
|Filename: Simple2sheets.zip |
|Download: http://www.excelforum.com/attachment.php?postid=4432 |
+-------------------------------------------------------------------+

--
marcoR2D2
------------------------------------------------------------------------
marcoR2D2's Profile: http://www.excelforum.com/member.php...o&userid=32327
View this thread: http://www.excelforum.com/showthread...hreadid=520879

  #2   Report Post  
Posted to microsoft.public.excel.newusers
paul
 
Posts: n/a
Default select products to order-in other sheet total num of that product

see your post on the general forum
paul
remove nospam for email addy!



"marcoR2D2" wrote:


Hi,

I'm excel beginner,and I'm facing a problem I cannot solve.
I want to enter some values(IDs,numbers) in rows of one sheet,and
(immediately or on button click) the corresponding row(by ID) in the
other sheet to be modified.How can i do that?

_More_detailed_explanation_
I attached a very small .xls example of what I'm trying to do:
- I have two worksheets,one is a simple product list,other a simple
order list
- Problem: in the order sheet i select *product ID* (from a list),and
number of products i order; in products sheet total number of that
product should be reduced for the number of products that are ordered.
(for example,if i had 100 shirts in products sheet,when 10 shirts are
ordered in order sheet,90 should be left in products sheet).

One more thing,in the order sheet i can order hats first,then
shirts,then sneakers,so random order-i dont know what is ordered in
which row.

I guess I need some macro to do that...

Thanx in advance


+-------------------------------------------------------------------+
|Filename: Simple2sheets.zip |
|Download: http://www.excelforum.com/attachment.php?postid=4432 |
+-------------------------------------------------------------------+

--
marcoR2D2
------------------------------------------------------------------------
marcoR2D2's Profile: http://www.excelforum.com/member.php...o&userid=32327
View this thread: http://www.excelforum.com/showthread...hreadid=520879


  #3   Report Post  
Posted to microsoft.public.excel.newusers
Roger Govier
 
Posts: n/a
Default select products to order-in other sheet total num of that product reduced

Hi Marco

You could enter the following formula in cell C3 of Sheets All Products
=IF(ISERROR(MATCH(A3,Order!$A$3:$A$15,0)),0,VLOOKU P(A3,Order!$A$3:$B$15,2,0))
and in cell D3
=B3-C 3
Copy formulae down for the length of your product list

Attach the following macro to your button on Orders to update the
figures in All Products and clear down the entries on the Order sheet

Sub UpdateProducts()
Sheets("All Products").Range("D3:D15").Copy
Sheets("All Products").Range("B3").PasteSpecial
Paste:=xlPasteValues, Operation:=xlNone, SkipBlanks _
:=False, Transpose:=False
Sheets("Order").Range("B3:B15").ClearContents
End Sub

Adjust the ranges in the formulae and in the macro to deal with any
changes in the size of your ranges.
--
Regards

Roger Govier


"marcoR2D2"
wrote in message
...

Hi,

I'm excel beginner,and I'm facing a problem I cannot solve.
I want to enter some values(IDs,numbers) in rows of one sheet,and
(immediately or on button click) the corresponding row(by ID) in the
other sheet to be modified.How can i do that?

_More_detailed_explanation_
I attached a very small .xls example of what I'm trying to do:
- I have two worksheets,one is a simple product list,other a simple
order list
- Problem: in the order sheet i select *product ID* (from a list),and
number of products i order; in products sheet total number of that
product should be reduced for the number of products that are ordered.
(for example,if i had 100 shirts in products sheet,when 10 shirts are
ordered in order sheet,90 should be left in products sheet).

One more thing,in the order sheet i can order hats first,then
shirts,then sneakers,so random order-i dont know what is ordered in
which row.

I guess I need some macro to do that...

Thanx in advance


+-------------------------------------------------------------------+
|Filename: Simple2sheets.zip |
|Download: http://www.excelforum.com/attachment.php?postid=4432 |
+-------------------------------------------------------------------+

--
marcoR2D2
------------------------------------------------------------------------
marcoR2D2's Profile:
http://www.excelforum.com/member.php...o&userid=32327
View this thread:
http://www.excelforum.com/showthread...hreadid=520879



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
Pivot table for reporting sales performance Ram Excel Discussion (Misc queries) 2 February 6th 06 10:06 AM
Inventory sheet to track, order & reduce quantity from master. drc536 New Users to Excel 2 October 23rd 05 05:36 PM
how can i filter data from one sheet and copy to another via formu mona Excel Worksheet Functions 4 August 31st 05 07:40 PM
data from one sheet to several in sequential order! firecord New Users to Excel 6 June 22nd 05 05:10 PM
Which Function(s) do I use? LB Excel Worksheet Functions 3 January 6th 05 02:53 AM


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