+ Reply to Thread
Results 1 to 6 of 6

Pre populate report

  1. #1
    Forum Contributor
    Join Date
    04-12-2013
    Location
    Crayford, kent
    MS-Off Ver
    Excel 2013
    Posts
    394

    Pre populate report

    Hi

    I want to pre-populate a summary based on values

    I know i can write
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    but i want to be able to write the following

    Gross margin has increased by 2% since last year, Purchase price has decreased by £1........

    Can i build in a formula to determine whether to write increased or decreased? based on the below figures?

    ACTUAL LAST YEAR DIFFERENCE
    Gross Margin 5% 3% 2%
    Purchase Price £9 £10 -£1

    Say the values are in celss c2:d4 i can write
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    But how can i incorporate it all so that i can have the sentance i want and include the figures, condition and base?

    Base: Gross margin has
    Condition: Increased/Decreased
    Base: by
    Figure: 2%

    Any help would be great

    Thanks

    Dan

  2. #2
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,938

    Re: Pre populate report

    Maybe something like this?

    ="Gross margin has "&if(A1<0,"Decreased","Increased")&" by "&A1

    If that doesnt work for you, I suggest you upload a sample for me to look at
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  3. #3
    Forum Contributor
    Join Date
    04-12-2013
    Location
    Crayford, kent
    MS-Off Ver
    Excel 2013
    Posts
    394

    Re: Pre populate report

    Hi FDibbins, that works brillaintly thanks only one issue is that where it is telling me how much it has increased/decreased it is returning-1.00000000, i have checked the number of decimal places in the cells im looking at and they are all to 2 decimals, as its a text line im unsure whether or not decimals can be changed?

    Dan

  4. #4
    Forum Contributor
    Join Date
    04-12-2013
    Location
    Crayford, kent
    MS-Off Ver
    Excel 2013
    Posts
    394

    Re: Pre populate report

    Not to worry i changed the &a1 to &text(a1,"£0.00") and it works great

    Thanks for your help perfect!!!!

  5. #5
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,938

    Re: Pre populate report

    Happy to help, I figured that woud get you heading in the right direction Thanks for the feedback

  6. #6
    Forum Contributor
    Join Date
    04-12-2013
    Location
    Crayford, kent
    MS-Off Ver
    Excel 2013
    Posts
    394

    Re: Pre populate report

    You're welcome, I started to try and was using the "s to try and pick up the cell value, which doesn't work, and didnt realise you can combine &s which I use for text strings and cells so this has saved hours re writing weekly results :-) its just being careful to include text"&" "&"text"&" "&cell etc, but that's brilliant help I really appreciate it thanks again :-)

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Data from 4 columns to populate into varied report - formula or VB?
    By Missy O in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 06-24-2013, 06:06 PM
  2. Populate Excel report from Database
    By haidermirza in forum Excel General
    Replies: 3
    Last Post: 03-27-2010, 03:40 PM
  3. Auto populate data from e-mail report
    By Mady808 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 05-22-2007, 11:19 AM
  4. use the current row in a list to populate a report
    By David Murto in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 04-13-2006, 01:35 PM
  5. Input to populate report worksheet
    By victorcab in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 08-29-2005, 10:19 PM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1