Previous in Forum: Primavera P6   Next in Forum: Any Specialist In Sap On This Forum?
Close
Close
Close
26 comments
Rate Comments: Nested
Associate

Join Date: Jan 2011
Posts: 25

Excel Formula

03/12/2011 1:54 AM

Hi Everybody,

I need to find the minimum value from different cell loaction (without array fuction) but i need to ignore the value of zero.

if any one know about the funtion or formula from excel to find the above one please share to me.

Register to Reply
Interested in this topic? By joining CR4 you can "subscribe" to
this discussion and receive notification when new comments are added.

"Almost" Good Answers:

Check out these comments that don't yet have enough votes to be "official" good answers and, if you agree with them, vote them!
Guru

Join Date: Feb 2011
Posts: 1119
Good Answers: 11
#1

Re: Excel Formula

03/12/2011 4:10 AM

Try this one:

Answer=IF(AND(A>0, B>0, ...), MIN(B,A, ...), " ") Just drag down.

Cheers

__________________
" To infinity and beyond" - Buzz Lightyear
Register to Reply
Guru

Join Date: Feb 2011
Posts: 1119
Good Answers: 11
#2

Re: Excel Formula

03/12/2011 4:31 AM

you mean ignoring zero from the set of data? that's something to go around additional equations, above is a wrong one.

__________________
" To infinity and beyond" - Buzz Lightyear
Register to Reply
Guru
United Kingdom - Member - Not a New Member Hobbies - Musician - New Member Hobbies - Fishing - New Member

Join Date: May 2006
Location: Reading, Berkshire, UK. Going under cover.
Posts: 9684
Good Answers: 468
#3

Re: Excel Formula

03/12/2011 5:32 AM

Create a second dataset, with zero values in the original set to a number greater than any expected minimum, and find the minimum of the new set.

e.g.

This is the result:

You can hide the second data set if appearance is important.

__________________
"Love justice, you who rule the world" - Dante Alighieri
Register to Reply
Guru
Engineering Fields - Electrical Engineering - Analog and Digital Circuit Design Engineering Fields - Electromechanical Engineering - Transformers, Motors & Drives, EM Launchers Engineering Fields - Engineering Physics - Applied Electrical, Optical, and Mechanical

Join Date: Jan 2008
Location: NY
Posts: 1207
Good Answers: 119
#4

Re: Excel Formula

03/12/2011 12:12 PM

I'm using OpenOffice Spreadsheet notation here. Use Excel notation for your sheet.

Assuming data column is A1:An

Make a new data column B1:Bn using equation: B1=IF(A1>0,A1,"")

This will transfer any greater-than-zero number and insert a "blank" cell for any zeros or negative numbers.

Then simply find the data minimum using equation: Bn+1=MIN(B1:Bn)

Good luck!

Register to Reply
Guru

Join Date: Feb 2011
Posts: 1119
Good Answers: 11
#5

Re: Excel Formula

03/12/2011 8:18 PM

Just a question, why would you like to ignore, zero? zero is significant to minimum function. I mean given the data say, sample Min( 0.02, 0.6, 0.05, 0.0, -0.09)=-0.09

__________________
" To infinity and beyond" - Buzz Lightyear
Register to Reply
Guru

Join Date: Feb 2011
Posts: 1119
Good Answers: 11
#6

Re: Excel Formula

03/12/2011 9:50 PM

The most practical example where zero is significant- consider a gas analyzer, say for VOC

negative readings are indicated (in the real sense, there is no negative right?) but the reading is indicative that the analyzer you are using is at drift measurement and it needed re-calibration gas to make the correct reference.

Such as these device measures Min & Peak concentration of a gas.

The zero there, is ideally something that stands for the best minimum reading your device could have. Knowing the accuracy of such device say +/-1% of the Span. Then just replace zero reading with +1% if you find the minimum from all the data as zero. (BEST PRACTICAL)

This is actually an easy problem using other programming environment, in C++ this is easy you just have to input the range for you data to ignore zero, but I am not quite familiar with this in MSexcel environment. There must be some way around, doing function with range of values.

It's very interesting to find it out.

__________________
" To infinity and beyond" - Buzz Lightyear
Register to Reply
Member

Join Date: Mar 2011
Posts: 5
#7
In reply to #6

Re: Excel Formula

03/12/2011 10:45 PM

You're just insulting the intelligence of the OP. I'm pretty sure that if he didn't need to ignore 0, he wouldn't be asking how to ignore 0. To the OP: The above solutions work easily, depending on what you are doing, you could also write a macro to delete the 0's.

Register to Reply
Guru

Join Date: Feb 2011
Posts: 1119
Good Answers: 11
#8
In reply to #7

Re: Excel Formula

03/12/2011 11:38 PM

Was that offensive? really. I am sorry if that's the case. I am just trying to explain a far more informative and in practical sense. It's because I think that will be helpful.

Well, I see the OP's not yet complaining. One same thing looks different at different angles by the way, just do not take your side as his/hers.

peace man!

__________________
" To infinity and beyond" - Buzz Lightyear
Register to Reply
Member

Join Date: Mar 2011
Posts: 5
#9
In reply to #8

Re: Excel Formula

03/12/2011 11:45 PM

Not offensive, insulting. I'm well aware of different looks from different angles, and for the record, I take your side, the OP is in idiot for trying to ignore 0's. ****The above is completely a joke. Laugh or ignore, I'm checking the OT box.

Register to Reply Off Topic (Score 5)
Guru

Join Date: Feb 2011
Posts: 1119
Good Answers: 11
#13
In reply to #9

Re: Excel Formula

03/13/2011 3:57 AM

well, I guess your promoting war Good luck then!

__________________
" To infinity and beyond" - Buzz Lightyear
Register to Reply Off Topic (Score 5)
Associate

Join Date: Jan 2011
Posts: 25
#11
In reply to #7

Re: Excel Formula

03/13/2011 1:33 AM

Dear Sir,

if some vendor not responding our request for given a quatation for related project, that time we need to consider the value of zero for relevant vendor cost in excel sheet.

that's why i need to Ignore zero from the minimum value.

Register to Reply
Guru

Join Date: Feb 2011
Posts: 1119
Good Answers: 11
#12
In reply to #11

Re: Excel Formula

03/13/2011 3:26 AM

You mean like this?

I don't know, perhaps try to explain your problem in a detailed way, so that we may help solve it.

__________________
" To infinity and beyond" - Buzz Lightyear
Register to Reply
Guru

Join Date: Apr 2006
Location: Cincinnati, Ohio, USA
Posts: 662
Good Answers: 49
#10

Re: Excel Formula

03/13/2011 12:15 AM

JohnDG's answer is essentially correct, but misses some values.

Use the formula- =if(a2=0," ",a2) for each cell of the "modified value" column and then use the standard =min(b2..bn) formula for the resulting "modified value" column

__________________
NO MATTER HOW WELL YOU HAVE DONE SO FAR, ALWAYS TRY TO BE BETTER TOMORROW.
Register to Reply
Associate

Join Date: Jan 2011
Posts: 25
#14
In reply to #10

Re: Excel Formula

03/13/2011 5:42 AM

1st Vender Cost 2 nd Vender Cost 3 rd Vender Cost 4th Vender Cost (Vender not responding)

Design Cost Fabrication Cost Total Design Cost Fabrication Cost Total Design Cost Fabrication Cost Total Design Cost Fabrication Cost Total Minimum cost consider for bidding

5000 7500 12500 5500 8500 14000 4750 8750 13500 0 0 0 what is the formula to find the minimum Cost Value from vendor costing

this is example calculation

please provide the formula to find out the value

Register to Reply
Guru
Engineering Fields - Electrical Engineering - Analog and Digital Circuit Design Engineering Fields - Electromechanical Engineering - Transformers, Motors & Drives, EM Launchers Engineering Fields - Engineering Physics - Applied Electrical, Optical, and Mechanical

Join Date: Jan 2008
Location: NY
Posts: 1207
Good Answers: 119
#15
In reply to #14

Re: Excel Formula

03/13/2011 7:33 AM

Multiple solutions already given to your question. Sorry you are unable to use them.

This uses formulas given above. Please review extensive excel help files if none of these solutions will work for you.

Register to Reply
Guru

Join Date: Feb 2011
Posts: 1119
Good Answers: 11
#16
In reply to #14

Re: Excel Formula

03/13/2011 10:33 AM

This is easy. The hint is replace 0 number with any alphabet. Could be n, no or any character. Min function ignores any character. You can use my first answer #1 . I'll show you tomorrow how. I am using my phone right now so i have no access to excel. Cheers

__________________
" To infinity and beyond" - Buzz Lightyear
Register to Reply
Guru

Join Date: Feb 2010
Posts: 1013
Good Answers: 36
#17
In reply to #14

Re: Excel Formula

03/13/2011 12:31 PM

Vendors - desg Cost - Fab. Cost - Total - Min.Cost

1st 5000 7500 12500 12500

2nd 5500 8500 14000

3rd 4750 8750 13500

4th 0 0

In the Total Column (D), place the formula:

= If( sum(B2:C2=0,"",sum(B2:C2)) this will place an empty cell where the Zeros are. Copy down to row 5

then in the minimum cost column (E), place the formula:

= if(D2=min(D$2:D$5),D2,"") and copy down to row 5

This will print the lowest value in column E and avoid the Zeroes.

I hope this is OK for you. Or at least if you have another scheme for the MIN() function, you avoid the zeroes.

Register to Reply
Guru

Join Date: Feb 2011
Posts: 1119
Good Answers: 11
#18
In reply to #14

Re: Excel Formula

03/13/2011 6:45 PM

Like this? I understand. It might be that the design & fabrication could be win by different vendors.

In this case above, you will consider Vendor 3 for the Designing Works, while Vendor 1 for the fabrication works to have the minimum cost amount for the entire project.

But please confirm if this is correct.

Cheers

__________________
" To infinity and beyond" - Buzz Lightyear
Register to Reply
Associate

Join Date: Jan 2011
Posts: 25
#20
In reply to #18

Re: Excel Formula

03/14/2011 12:33 AM

Dear sir,

1st Vender Cost 2 nd Vender Cost 3 rd Vender Cost 4th Vender Cost (Vender not responding)

Design Cost Fabrication Cost Total Design Cost Fabrication Cost Total Design Cost Fabrication Cost Total Design Cost Fabrication Cost Total Minimum cost consider for bidding

5000 7500 12500 0 0 0 4750 8750 13500 0 0 0 ?

TABLE IN HORIZONTAL POSITION ONLY

Register to Reply
Associate

Join Date: Jan 2011
Posts: 25
#21
In reply to #20

Re: Excel Formula

03/14/2011 12:58 AM

Please don't derived calculation in vertical position as per above, because in original my excel calculated file consist of total project equipment and packages costing (lengthy one), therefore it's not possible to provide (calculate elaborately) in vertical position

Register to Reply
Guru

Join Date: Feb 2010
Posts: 1013
Good Answers: 36
#22
In reply to #21

Re: Excel Formula

03/14/2011 9:01 AM

From your reply, you are working Horizontally: i.e., every vendor has a set of 3 cells, then the next vandor follows on the same row etc... your last column for the result is at the extreme right (Yes?).

Although it looks clumsy to me to have such a sheet, since it is difficult to handle if you have a big number of Vendors, I can give you a formula for 4 vendors in a row ( you can extrapolate for more if you like ):

=IF(SMALL((D6,G6,J6,M6),1)<>0,SMALL((D6,G6,J6,M6),1),IF(SMALL((D6,G6,J6,M6),2)<>0,SMALL((D6,G6,J6,M6),2),IF(SMALL((D6,G6,J6,M6),3)<>0,SMALL((D6,G6,J6,M6),3),IF(SMALL((D6,G6,J6,M6),4)<>0,SMALL((D6,G6,J6,M6),4),"None"))))

The above is on one line and check the '(' & ')' when you extrapolate for more than the 4 vendors! You can change the last message ("None" ) for whatever suits you.

If You want to be more elegant, then you need to write a VB function that will automatically selects and work it out. Short of this, the above does the trick.

Register to Reply Score 1 for Good Answer
Associate

Join Date: Jan 2011
Posts: 25
#23
In reply to #22

Re: Excel Formula

03/14/2011 11:59 PM

Perfect one, your formula fulfill my needs, lot of thanks

Regards,

Rajkumar.s

Register to Reply Off Topic (Score 4)
Guru

Join Date: Feb 2010
Posts: 1013
Good Answers: 36
#24
In reply to #23

Re: Excel Formula

03/15/2011 5:45 AM

Thank you for your reply and glad it helps you.

What I cannot understand is all those who gave you an Off Topic vote instead of giving me a GA vote (??). Well, the human nature is full of surprises.

Register to Reply Off Topic (Score 5)
Guru
United Kingdom - Member - Not a New Member Hobbies - Musician - New Member Hobbies - Fishing - New Member

Join Date: May 2006
Location: Reading, Berkshire, UK. Going under cover.
Posts: 9684
Good Answers: 468
#25
In reply to #24

Re: Excel Formula

03/15/2011 6:12 AM

If you click on OP's RATE button in the previous post, youl'll see that he marked himself off-topic.

I've given you a consolation GA .

__________________
"Love justice, you who rule the world" - Dante Alighieri
Register to Reply Off Topic (Score 5)
Guru

Join Date: Feb 2010
Posts: 1013
Good Answers: 36
#26
In reply to #25

Re: Excel Formula

03/15/2011 8:20 AM

Thanks for the reply and GA

Register to Reply
Power-User

Join Date: Jun 2007
Posts: 141
Good Answers: 2
#19

Re: Excel Formula

03/13/2011 8:32 PM

Why not use an array formula? It would be an easy solution to your problem. For example, say the range you want to check for the minimum value is C1 to C10. The formula you would enter would be "=MIN(IF(C1:C10<>0,C1:C10))" followed by SHIFT+CTRL+ENTER. The formula would become {=MIN(IF(C1:C10<>0,C1:C10))} on your screen and provide the non-zero min for the range C1:C10.

Register to Reply
Register to Reply 26 comments

"Almost" Good Answers:

Check out these comments that don't yet have enough votes to be "official" good answers and, if you agree with them, vote them!
Copy to Clipboard

Users who posted comments:

energygod (1); homeydclown (2); JohnDG (2); LAA_Lucke (4); Lendog (1); mjb1962853 (2); Noudge79 (9); rajkumarabirami (5)

Previous in Forum: Primavera P6   Next in Forum: Any Specialist In Sap On This Forum?

Advertisement