[2 days left] What’s wrong with your cloud strategy? Learn why multicloud solutions matter with Nimble Storage.Register Now

x
?
Solved

Equation assistance

Posted on 2013-06-04
6
Medium Priority
?
223 Views
Last Modified: 2013-06-04
Hi guys,

Please have a look at the attached spreadsheet. I need an equation to calculate the root product code. As you can see from the red text, if there are a group of identical product names(this could be due to varying sizes) I want them all to have the product code of the first product name in that group. I hope this makes sense?

Many Thanks,
Dean
Upload.xls
0
Comment
Question by:deanlee17
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
  • 2
  • 2
6 Comments
 
LVL 7

Expert Comment

by:Beneford
ID: 39218331
You could use the formula:
=IF(B2=B1,J1,J2)
in cell Sheet2:J2

Then replicate it downwards.

Essentially it says - if this row is the same as the one above, use that code, otherwise use my code.
It does require the similar codes to be in adjacent rows.
0
 
LVL 24

Accepted Solution

by:
Steve earned 1000 total points
ID: 39218332
try this in J2 copied down :
=IF(COUNTIF(B$1:B1,B2)>0,VLOOKUP(B2,B$1:J1,9,FALSE),A2)

This will allow for Product names to be non-sequential.
Upload.xls
0
 
LVL 7

Assisted Solution

by:Beneford
Beneford earned 1000 total points
ID: 39218342
Sorry, formula correction.

=IF(B2=B1,J1,A2)
0
Moving data to the cloud? Find out if you’re ready

Before moving to the cloud, it is important to carefully define your db needs, plan for the migration & understand prod. environment. This wp explains how to define what you need from a cloud provider, plan for the migration & what putting a cloud solution into practice entails.

 

Author Comment

by:deanlee17
ID: 39218434
Wow 2 great answers, both worked fine. Shud i award points for first correct answer or split?...

Also, if it outside of the scope of capabilities to (for example) look up the product name online and populate a cell with the results?
0
 
LVL 24

Expert Comment

by:Steve
ID: 39218484
To look up online would require some VBA and then it all gets a tad more complicated.

It is possible to populate a "master" list and refer to this, ut then the master list would need to be updated and maintained.

As for points, it is up to you, either solution is suitable...
    one simple solution which requires the list in order.
    one slightly less simple, but which does not require sorting.
I think both have their merrits.
Any points are always welcome and a 50/50 split is normally quite fair if you feel that both solutions are equaly suitable.
0
 

Author Comment

by:deanlee17
ID: 39218495
Ok I will look into this, I feel a 50 / 50 split is fair. Thanks guys.
0

Featured Post

Hire Technology Freelancers with Gigs

Work with freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely, and get projects done right.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Technology opened people to different means of presenting information, but PowerPoint remains to be above competition. Know why PPT still works today.
Do you use a spreadsheet like Microsoft's Excel?  Have you ever wanted to link out to a non excel file on your computer or network drive?  This is the way I found to do it!
The viewer will learn how to use a discrete random variable to simulate the return on an investment over a period of years, create a Monte Carlo simulation using the discrete random variable, and create a graph to represent the possible returns over…
Although Jacob Bernoulli (1654-1705) has been credited as the creator of "Binomial Distribution Table", Gottfried Leibniz (1646-1716) did his dissertation on the subject in 1666; Leibniz you may recall is the co-inventor of "Calculus" and beat Isaac…

649 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question