Fiat Coupe Forum
- Founded by Kayjey & James Northam
- Funded by the Club for the benefit of all owners
Fiat Coupe Club UK
join the club
Fiat Coupe Forum
 
» Announced
    Posting images


» Related sites
    Main club site
    fiatcoupe.net


» External data
    owners listed
 
Who's Online Now
0 registered members (), 146 guests, and 2 spiders.
Key: Admin, Global Mod, Mod
Forum Statistics
Forums69
Topics113,611
Posts1,341,241
Members1,804
Most Online731
Jan 14th, 2020
Top Posters(All Time)
barnacle 33,563
stan 32,122
Theresa 23,301
PeteP 21,520
bockers 21,071
JimO 17,917
Nigel 17,367
Edinburgh 16,817
RSS Feeds
Club Events
Club Information
Track Events
Rolling Road/RWYB
Social Events
Non-UK Events
Coupé Related Chat
Coupé Spotting
Coupé News/Press
Buying/Selling Advice
Insuring a Coupé
Basic FAQ's
How to Guides
Forum Issues
Technical Problems
General Maintenance
Styling
Tuning
Handling
ICE and Alarm
Coupés for Sale
Coupés Wanted
Parts for Sale
Parts Wanted
Group Buys
Business Forum
Other Vehicles for Sale/Wanted
Other Items for Sale/Wanted
Haggling/Offers
Ebay links
Other Cars
Other Websites
General Chat
Previous Thread
Next Thread
Print Thread
Excel Question #1498890
16/07/2014 14:41
16/07/2014 14:41
Joined: Sep 2009
Posts: 5,015
ation
szkom Online content OP
Club member 2000
szkom  Online Content OP
Club member 2000
Forum is my life

Joined: Sep 2009
Posts: 5,015
ation
Bit of a strange one. I'm after automatically logging numbers that are generated when the spreadsheet recalculates.

For example cell A1 will change every time I hit F9. I want to record those numbers.

Can it be done without Macros? My excel skills are distinctly average.

Thanks in advance

Re: Excel Question [Re: szkom] #1498894
16/07/2014 14:48
16/07/2014 14:48
Joined: Dec 2005
Posts: 12,546
Northumberland
A
AndrewR Offline
I AM a Coop
AndrewR  Offline
I AM a Coop
A

Joined: Dec 2005
Posts: 12,546
Northumberland
No, sorry, it can only be done with macros.

On the plus side, it's very easy to do.


Dear monos, a secret truth.
Re: Excel Question [Re: szkom] #1498921
16/07/2014 18:51
16/07/2014 18:51
Joined: Dec 2005
Posts: 8,416
Lightwater, Surrey
DaveG Offline
Club Treasurer Member 311
DaveG  Offline
Club Treasurer Member 311
Je suis un Coupé

Joined: Dec 2005
Posts: 8,416
Lightwater, Surrey
Well I've almost got something to work without macros.

Start with a blank sheet, and first of all go to Options..Formulas and under Calculation options make sure "Automatic" (Workbook calculation) is selected and "Enable iterative calculation" is ticked, but enter the "Maximum Iterations" as 1, then click OK.

I had to make up an iterative function, in this case it's finding the square root of 2 (deliberately overshooting each time).

In A1 to D1 enter the labels "iter'n", "guess", "error" and "next guess"

1. In C2 enter =B2^2-2

2. In D2 enter =B2-C2/1.5

3. In A4 enter the label "iter'n"

4. In _B4 enter =IF(A4=$A$2,$B$2,_B4) [remove the _ this stops the autocorrect to "before"]

5. In A5 enter the value 1 and in A6 enter the value 2. Highlight cells A5:A6 and drag the bottom right black square down to create the values 1-50 in cells A5:A54

6. Copy cell _B4 to cells B5:B54 [remove the _ this stops the autocorrect to "before"]

7. In B2 enter the value 1

8. In cell A2 enter =A2+1

9. In cell B2 enter =D2

You've now set up a table showing the results of the first and second iteration.

10. Now press F9 repeatedly and the iterative values will fill up the cells B7:B54 and replace the values of 1 that are in there.

To start again, you need to repeat steps 6-10. There's a way to do some of this re-setting automatically (without macros) but let's see if that's kind of what you're looking for?


1996 Portofino 20vt & 2000 Pearl White Plus
1985½ & 2016 2017 Fiat 124 Spider + XF Sportbrake
Re: Excel Question [Re: szkom] #1498923
16/07/2014 19:59
16/07/2014 19:59
Joined: Dec 2005
Posts: 12,546
Northumberland
A
AndrewR Offline
I AM a Coop
AndrewR  Offline
I AM a Coop
A

Joined: Dec 2005
Posts: 12,546
Northumberland
Ooo, *nice* solution. Three tweaks:

1. In step 4 why not start at cell B5? It's neater.

2. To 'reset' just delete the value in A2 and then re-enter the formula.

3. I also selected the rows 5:54 and used conditional formatting, using the formula =$A5>$A$2, to set the font to white, so that the rows 'appear' as you recalculate.

But, yeah, really nice solution.


Dear monos, a secret truth.
Re: Excel Question [Re: szkom] #1498925
16/07/2014 20:50
16/07/2014 20:50
Joined: Sep 2009
Posts: 5,015
ation
szkom Online content OP
Club member 2000
szkom  Online Content OP
Club member 2000
Forum is my life

Joined: Sep 2009
Posts: 5,015
ation
Gents, I don't know what to say? Thank you. It'll take me a little while to get my head around that, but it looks like the business.

What I'm trying to do is for my own benefit really. I'm hugely out of touch with Excel's capability, mainly due to the industry and it's seeming lock down on macros. So I've never had the need to do anything more complicated than basic tabulation in a spreadsheet.

That's now changed, so wait for it...I'm building a lottery number generator. It's a bit daft but I plan on capturing the numbers generated and *trying* to generate some form of analysis.

I know there's no real world application for it, just something to get me thinking about problems.


Powered by UBB.threads™ PHP Forum Software 7.7.1
(Release build 20190129)
PHP: 7.3.33 Page Time: 0.011s Queries: 15 (0.006s) Memory: 0.7609 MB (Peak: 0.8137 MB) Data Comp: Off Server Time: 2024-05-05 15:01:44 UTC