Solved

Adjusting formulas to accommodate variable size of input data

Posted on 2011-03-23
12
207 Views
Last Modified: 2012-05-11
Attached is a file where I need to change a given shape based on certain parameters.

The input data shall be copied from another software to columns A and B below row 10

Based on values from C1 to C6 a new shape has to be generated. (C1 and C2 shall be manually entered)
The formulas for the new shape is entered in columns D and E. Presently only column D changes.

The problem is that the size of the input data varies and so does the location of '0' and the formulas depend on the position of zero. (I have provided a second set of data for checking purposes in columns A and B)

I would like to modify the formulas so that the shape is correctly modified. This shape modification can be visualised by changing the values in C1 and C2 as suggested in the file.

Note: This has to be done without VBA.

Saqib
0
Comment
Question by:Saqib Husain, Syed
[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
  • 7
  • 5
12 Comments
 
LVL 43

Author Comment

by:Saqib Husain, Syed
ID: 35204789
File attached
Shape-modifier.xlsx
0
 
LVL 43

Author Comment

by:Saqib Husain, Syed
ID: 35204794
Forgot the second set of data for columns A and B


-2.1302	62.9612
-2.027	63.03
-1.827	63.03
-1.452	62.78
-0.941	62.78
-0.813	62.524
0	62.524
0.813	62.524
0.941	62.78
1.452	62.78
1.677	62.93
2.4114	62.93

Open in new window

0
 
LVL 12

Expert Comment

by:tilsant
ID: 35205307
Hi Saqib,

For the current values & formulas, i have attached the modified formulas.
There is a Helper Column which i have used for getting the desired results.
For the getting the correct value in C4, below formula is used:
=INDEX($B$11:$B$24,MATCH(0,$A$11:$A$24,0)-2)-INDEX($B$11:$B$24,MATCH(0,$A$11:$A$24,0)-1)


Hope this helps.
Tils.
Copy-of-Shape-modifier.xlsx
0
Revamp Your Training Process

Drastically shorten your training time with WalkMe's advanced online training solution that Guides your trainees to action.

 
LVL 43

Author Comment

by:Saqib Husain, Syed
ID: 35205735
Thanks, Tils. Yes this is how I want it done but you have missed out the effect of C1. This is supposed to change the slopes next to the bottom horizontal line.

Saqib
0
 
LVL 43

Author Comment

by:Saqib Husain, Syed
ID: 35205778
Also with fewer data the bottom of the range gives zeros and knock of the graph. Can you also take care of that?

Thanks
0
 
LVL 12

Expert Comment

by:tilsant
ID: 35206377
Hi Saqib,

Frankly speaking, i didn't understand exactly what you are trying to say, but i found out one mistake in my formula which i have corrected. Below is the formula to be used in cell D11 and to be dragged down:
=IF(ABS(F11)<2,A11,IF(F11=-2,D12-(E11-E12)*$C$1,IF(F11=2,D10+(E11-E10)*$C$1,IF(F11=-3,D12-$C$3,IF(F11=3,D10+$C$3,IF(F11<0,D12+(A11-A12),D10+(A11-A10)))))))


Tils.
Copy-of-Shape-modifier.xlsx
0
 
LVL 43

Author Comment

by:Saqib Husain, Syed
ID: 35207093
I will try the formula tomorrow morning when I get back to office.

About the "Didn't understand" part, if you are referring to my last comment then try the data from my second comment.
0
 
LVL 12

Expert Comment

by:tilsant
ID: 35207707
For the second data set, i have tried with the graph; don't know if that is correct or not!


Tils.
Copy-of-Shape-modifier.xlsx
0
 
LVL 43

Author Comment

by:Saqib Husain, Syed
ID: 35213040
Actually I was looking for something more flexible so that the users do not have to worry about deleting or adding lines at the bottom of the column. I am not worried about #N/A values but the graph should be adaptable.
0
 
LVL 12

Accepted Solution

by:
tilsant earned 500 total points
ID: 35213096
May be this would help. I have extended the formulas till the 30th row and the graph too..

Copy-of-Shape-modifier.xlsx
0
 
LVL 43

Author Closing Comment

by:Saqib Husain, Syed
ID: 35213206
Thanks. Actually this data has been imported from autocad manually and has to be returned to autocad after the modification.

I shall now write a routine to automate the import and export. Unfortunately the CAD topic area is not so active otherwise I would have posted this part there and someone could have had a chance to bag a few points.

Saqib
0
 
LVL 12

Expert Comment

by:tilsant
ID: 35213431
Thanks for sharing the background, Saqib!
Few years back even i was into AutoCad and stuff, but not anymore now....


Tils.
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

A little background as to how I came to I design this code: Around 5 years ago I designed an add-in that formatted Excel files to a corporate standard, applying different cell colours and font type depending on whether the cells contained inputs,…
Introduction This Article briefly covers methods of calculating the NPV and IRR variants in Excel as well as the limitations in calculating and interpreting IRR results. Paraphrasing Richard Shockley, author of my favourite finance reference tex…
This Micro Tutorial demonstrates how to create Excel charts: column, area, line, bar, and scatter charts. Formatting tips are provided as well.
Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…

635 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