Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 7
Default Regonise coloum A while adding up coloum B to give a result in C

A B C
1 licence No. weight status
2 gmb123r 100
3 gmb234q 150
4 gmb789h 250
5 gmb123r 150
6 gmb123r 275

What I am trying to do is when you type in the licence number and the weight
into coloums A&B, Coloum C returns weither or not the licence is "used" or
"open" and to update for every new row added, recognising that it only takes
away from the one licence total that has been entered.
Licence maximum weights gmb123r=525 so when row 6 is entered all 3 rows
would now say "used"
Also if possible if you entered a weight that took licence gmb123r over its
weight allowance coloum C would say "too much"

  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 4,339
Default Regonise coloum A while adding up coloum B to give a result in C

put in C2 and copy down

=IF(SUMIF($A$2:A2,A2,$B$2:B2)Maxwt,"too much","used")

Replace "Maxwt" with formula(?) e.g. VLOOKUP, to get the maximum weight for
a given licence number.

HTH

"B.H.JIG" wrote:

A B C
1 licence No. weight status
2 gmb123r 100
3 gmb234q 150
4 gmb789h 250
5 gmb123r 150
6 gmb123r 275

What I am trying to do is when you type in the licence number and the weight
into coloums A&B, Coloum C returns weither or not the licence is "used" or
"open" and to update for every new row added, recognising that it only takes
away from the one licence total that has been entered.
Licence maximum weights gmb123r=525 so when row 6 is entered all 3 rows
would now say "used"
Also if possible if you entered a weight that took licence gmb123r over its
weight allowance coloum C would say "too much"

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 903
Default Regonise coloum A while adding up coloum B to give a result in C

"status"
C2: =IF(D2525,"OVER",IF(D2<525,"Open","Used"))

"used"
D2: =SUMIF(A:A,A2,B:B)

"available"
E2: =525-D2

For other examples of SUMIF, see
SUMIF Example
http://www.mvps.org/dmcritchie/excel/sumif.htm

You could use Conditional Formatting to color rows or cells
http://www.mvps.org/dmcritchie/excel/condfmt.htm

---
HTH,
David McRitchie, Microsoft MVP - Excel
My Excel Pages: http://www.mvps.org/dmcritchie/excel/excel.htm
Search Page: http://www.mvps.org/dmcritchie/excel/search.htm

"B.H.JIG" wrote in message ...
A B C
1 licence No. weight status
2 gmb123r 100
3 gmb234q 150
4 gmb789h 250
5 gmb123r 150
6 gmb123r 275

What I am trying to do is when you type in the licence number and the weight
into coloums A&B, Coloum C returns weither or not the licence is "used" or
"open" and to update for every new row added, recognising that it only takes
away from the one licence total that has been entered.
Licence maximum weights gmb123r=525 so when row 6 is entered all 3 rows
would now say "used"
Also if possible if you entered a weight that took licence gmb123r over its
weight allowance coloum C would say "too much"



  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 903
Default Regonise coloum A while adding up coloum B to give a result in C

See Topper's reply which was a whole day earlier and
a better answer and recognized that different trucks(?)
would probably have different weight limits.

Some help with VLOOKUP Worksheet Function
mentioned can be seen in
http://www.mvps.org/dmcritchie/excel/vlookup.htm


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 count the number of cells used in a coloum? mjm Excel Discussion (Misc queries) 2 August 7th 06 08:10 PM
Identify duplicate coloum A cells, and merge their row and text in Calla212 Excel Discussion (Misc queries) 3 March 30th 06 10:11 PM
Need to import data to a coloum not a row Russ M. Excel Discussion (Misc queries) 1 November 22nd 05 08:40 PM
Chart Coloum Labels - Very Urgent Ian B Charts and Charting in Excel 4 September 18th 05 07:01 PM
entering a26-02 into a cell give strange result Anthony Excel Discussion (Misc queries) 1 January 27th 05 10:34 PM


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