Hi All, I need a page to make me easier calculate this.
What I need is page to calculate the best price between two groups of item chosen from a list of items having a code and a price, I want to input the code in the two columns, in the bottom of the column I would like an autosume not of the codes input but the values of each code, if total is bigger than the total of the other column cell should turn to Red if its lower should turn Green.
Bellow I want a message pointing which one is the best option. actually the list is only with 10 items, this list will have about 100 or more, the comparative would be with maximum 5 or Six Items at the time.
Attached is document I made to show my Idea, thanks to all.
To get the sum of each column:
C25: =SUMPRODUCT(SUMIF($A$5:$E$9,C$18:C$24,$C$5:$G$9))
copied to E25
In terms of colouring the resulting values - see Conditional Formatting:
http://www.contextures.com/xlCondFormat01.html
My Recommended Reading:
Volatility
Sumproduct & Arrays
Pivot Intro
Email from XL - VBA & Outlook VBA
Function Dictionary & Function Translations
Dynamic Named Ranges
Ok, with this we can resolve the issue of the color, now how can I resolve the Issue of input a code in the column and autosume in the bottom the value of the code. I mean How can I tell to the column this one I input means 1000.
Thanks
Did you read the prior post at all ?
My Recommended Reading:
Volatility
Sumproduct & Arrays
Pivot Intro
Email from XL - VBA & Outlook VBA
Function Dictionary & Function Translations
Dynamic Named Ranges
You are right, I copied as you said, but I still can not understand when I do my big list how to direct the formula, can you tell me the rules to follow? the big list would be in another sheet, would be only three columns all the way down. Code Name Price.
Thanks
It's all rather too vague to offer you a tailored solution but if we assume for the sake of demo. that your 3 columns list is situated in Sheet2 in Range A1:C1000 and that your "criteria" list of IDs is on Sheet1 in C$18:C$24 as before then:
Sheet1!C25:
=SUMPRODUCT(SUMIF(Sheet2!$A$1:$A$1000,C$18:C$24,Sheet2!$C$1:$C$1000))
If you need more specific assistance I'm afraid we need more specific info.
My Recommended Reading:
Volatility
Sumproduct & Arrays
Pivot Intro
Email from XL - VBA & Outlook VBA
Function Dictionary & Function Translations
Dynamic Named Ranges
Ok, my first Idea was understand how the formulas should go with the small catalogue. Here is more info, I made my catalogue based on three suppliers having Code, Item, Condition, Price, the Catalogue is already in next sheet, in first sheet we would only have the calculator, which would be the two colums asosiating the code of the item with the price o it, and results.
The document is attached,
By the way, thanks for all the support previously, I see you are an expert, I will follow what you say.
Last edited by shg; 05-05-2010 at 07:23 PM. Reason: deleted spurious quote
Your layout (Catalogue) isn't ideal - always better whenever & wherever possible to use contiguous data tables
(ie one table for all suppliers - add a column to the table to denote supplier for each record)
Given your present setup:
C15:
=SUMPRODUCT(SUMIF(Catalogue!$A$4:$K$242,C$8:C$14,Catalogue!$D$4:$N$242))
copied to E15
Above avg perhaps but no expert - don't follow what I say blindly - we all make mistakes.Originally Posted by wcedeno
My Recommended Reading:
Volatility
Sumproduct & Arrays
Pivot Intro
Email from XL - VBA & Outlook VBA
Function Dictionary & Function Translations
Dynamic Named Ranges
Thanks again, i works fantastic, just a question what would be the step to follow if I would like to to add more items to each supplier and still be calculated in the Formula.
Thanks
Last edited by shg; 05-05-2010 at 07:24 PM. Reason: deleted spurious quote
You will be best served explaining your requirements via a sample file - as it stands I'm afraid I don't understand the question.
My Recommended Reading:
Volatility
Sumproduct & Arrays
Pivot Intro
Email from XL - VBA & Outlook VBA
Function Dictionary & Function Translations
Dynamic Named Ranges
I had assumed you meant something other than change the cell references (change K242 to be Kn and N242 to be Nn where n is the last row of data)
If you intend to change the range all the time either
a) setup some excess capacity (eg K500/N500)
else
b) use a Dynamic Range but given use of SUMPRODUCT I would suggest you create with an INDEX based RefersTo approach rather than OFFSET but there are more examples of the latter.
My Recommended Reading:
Volatility
Sumproduct & Arrays
Pivot Intro
Email from XL - VBA & Outlook VBA
Function Dictionary & Function Translations
Dynamic Named Ranges
Hi Again, a year ago and what I've got from this post has helped me a lot, the logistic used by this formula =SUMPRODUCT(SUMIF(Catalogue!$A$4:$K$242,C$8:C$14,Catalogue!$D$4:$N$242)), to show what is from D4 to N242 per the values inserted from C8 to c14, and similar to the values from A4 to K242 had worked perfectly when what I have in from A4 TO k242 is text and wha I have from D4 to N242 is # but if I have text from D4 to N242 it just give a 0, what can I do?
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks