Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2
Default getting Excel to create an extra column

I might be re-inventing the wheel here, but any assistance would be
appreciated.

I have a data import (SQL query) to one sheet of sales data (date, rep name,
amount, qty etc. etc. )
I am using a second sheet to extract certain info such as Sales in the week,
month, to date etc.
Trouble is, the data coming in does not multiply the QTY with the Sales unit
price, so I need an extra column
for total sales. I cannot put an extra column in the data sheet manually due
to the refresh moving the cell refences out of line
So how do I tell excel to add this column of data when I refresh the data ?

BTW, the formulas to extract the required data in the reporting sheet are
long enough and Im finding too difficult to add an extra qty * sales in them
for example...
=COUNT(IF((data!FU$2:FU$6382="MAREK")*(MONTH(data! M$2:M$6381)=$F$1)*(YEAR(data!M$2:M$6359)=$F$3),dat a!E$2:E$6381))
its just getting too mad!!

Thanks in advance
--
Vass


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 4,391
Default getting Excel to create an extra column

Vass,
Can you not edit the SQL that pulls the data from the DB to include a
calculated field of Qty*Sales AS TotalSales ?
Or am I missing the point ?

NickHK

"Vass" wrote in message
. uk...
I might be re-inventing the wheel here, but any assistance would be
appreciated.

I have a data import (SQL query) to one sheet of sales data (date, rep

name,
amount, qty etc. etc. )
I am using a second sheet to extract certain info such as Sales in the

week,
month, to date etc.
Trouble is, the data coming in does not multiply the QTY with the Sales

unit
price, so I need an extra column
for total sales. I cannot put an extra column in the data sheet manually

due
to the refresh moving the cell refences out of line
So how do I tell excel to add this column of data when I refresh the data

?

BTW, the formulas to extract the required data in the reporting sheet are
long enough and Im finding too difficult to add an extra qty * sales in

them
for example...

=COUNT(IF((data!FU$2:FU$6382="MAREK")*(MONTH(data! M$2:M$6381)=$F$1)*(YEAR(da
ta!M$2:M$6359)=$F$3),data!E$2:E$6381))
its just getting too mad!!

Thanks in advance
--
Vass




  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2
Default getting Excel to create an extra column


"NickHK" wrote in message
...
Vass,
Can you not edit the SQL that pulls the data from the DB to include a
calculated field of Qty*Sales AS TotalSales ?
Or am I missing the point ?


I could if I knew how
the SQL already removes duplicates and some rows that are blank
with this:
Select * From itran INNER JOIN ihead ON itran.it_doc = ihead.ih_doc WHERE
itran.it_status = 'A' AND ihead.ih_quotat = "" AND itran.it_stock <""

Can you offer an addition to it?
thanks
--
Vass


Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
SHORTEN A FORMULA - AVOIDING AN EXTRA COLUMN FARAZ QURESHI Excel Discussion (Misc queries) 1 February 10th 09 09:21 AM
How would I add an extra column in a spreed sheet April Excel Worksheet Functions 2 June 23rd 06 05:42 PM
quickly create extra copies of a worksheet template in a workbook simon Excel Worksheet Functions 2 October 23rd 05 07:04 PM
2 Columns - Show extra items in Column B orbojeff Excel Worksheet Functions 4 October 9th 05 04:51 AM
How do I insert the same extra digit to each cell in a column? GR Excel Discussion (Misc queries) 7 October 5th 05 07:40 PM


All times are GMT +1. The time now is 01:54 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"