![]() |
![]() |
|
|||||||
| Excel Questions All Excel/VBA questions - formulas, macros, pivot tables, general help, etc. Please post to this forum in English only. |
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
New Member
Join Date: May 2002
Posts: 30
|
I have a worksheet that I have to manually insert and calculate data when there is no need to. My worksheet is a change of design
cost breakdown. it separates credits so the customer can easley view and separate them. This is easer to do than it is to explain am sure. However; here it goes Column A line items Column B line item description Column C material value Column D labor value Coolum E labor hrs Columns F, G, H & I Codes What I need to do is, if F, G, H, or I contain lets say code #s 1 or 2 (credit items) then the data C and D is Calculated otherwise data is ignored Use rows 6 thru 15 for any examples data will be calculated in c 16 and d 16 Been trying some look up and indexing type stuff but still struggling Thx R W #s |
|
|
|
|
|
#2 |
|
MrExcel MVP
Join Date: Feb 2002
Location: The Hague
Posts: 50,317
|
Why not post some data? If you inclined to do so, select an unused cell, type =, select 15 rows of your data including labels, hit F9, Edit|Copy what you see, and post the copied bit in the follow up. |
|
|
|
|
|
#3 | |
|
New Member
Join Date: May 2002
Posts: 30
|
Quote:
THx R W |
|
|
|
|
|
|
#4 | ||
|
MrExcel MVP
Join Date: Feb 2002
Location: The Hague
Posts: 50,317
|
Quote:
Aladin |
||
|
|
|
|
|
#5 | |||
|
New Member
Join Date: May 2002
Posts: 30
|
Quote:
WILL THIS HELP |
|||
|
|
|
|
|
#6 |
|
MrExcel MVP
Join Date: Feb 2002
Location: The Hague
Posts: 50,317
|
OK, I go the sample data. You appear to have totals in C14 and D14 already calculated and want to have another set of calculations in C16 and D16, dependent on codes that are in columns F to I from F2 on. Right? Do these calculations include the totals in C14 and D14? And, what is the relationship between these calculations and codes in F to I? |
|
|
|
|
|
#7 | |
|
New Member
Join Date: May 2002
Posts: 30
|
Quote:
Yes C14 & D14 are Totals Yes C16 & C16 would have another calculation No sir we need to extract the values for C16 & D16 per the code in F to I the code in F to I are more or less notes to the customer. E G # 1 would mean credit for Column. C # 2 would mean credit for Column. D # 3 would be an exsiting item no credit ect. we are looking to seperate the credited line items from the non credited line items. I hope i have not confused you any futher as i often do concerning this exciting, yet perplexing subject. thx rw [ This Message was edited by: mechpm on 2002-05-26 15:46 ] |
|
|
|
|
|
|
#8 | ||
|
MrExcel MVP
Join Date: Feb 2002
Location: The Hague
Posts: 50,317
|
Quote:
In C16 enter: =SUMIF(F2:F13,1,C2:C13) In D16 enter: =SUMIF(G2:G15,2,D2:D13) PS. Could you edit your post containing the sample by giving an enter after each semicolon (";")? The whole thread would become more readable. Aladin |
||
|
|
|
![]() |
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|