ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   Sorting Data (https://www.excelbanter.com/excel-discussion-misc-queries/175755-sorting-data.html)

Harley

Sorting Data
 
My formula =If(d5=0,0,a2-i5) generates number of days in inventory if there
is a value in column d. When attempting to sort the results from shortest to
longest number of days, I lose the formula results due to a Ref error. How
can I correct this problem?

thanks,
harley

CLR

Sorting Data
 
Probably a typeo...........

a2 should be a5

=If(d5=0,0,a5-i5)

Vaya con Dios,
Chuck, CABGx3


"Harley" wrote:

My formula =If(d5=0,0,a2-i5) generates number of days in inventory if there
is a value in column d. When attempting to sort the results from shortest to
longest number of days, I lose the formula results due to a Ref error. How
can I correct this problem?

thanks,
harley


dlw

Sorting Data
 
if a2 is something like today's date, make it $a$2 so it doesn't move when
you sort.

"Harley" wrote:

My formula =If(d5=0,0,a2-i5) generates number of days in inventory if there
is a value in column d. When attempting to sort the results from shortest to
longest number of days, I lose the formula results due to a Ref error. How
can I correct this problem?

thanks,
harley


Harley

Sorting Data
 
That got it!

thanks.

"dlw" wrote:

if a2 is something like today's date, make it $a$2 so it doesn't move when
you sort.

"Harley" wrote:

My formula =If(d5=0,0,a2-i5) generates number of days in inventory if there
is a value in column d. When attempting to sort the results from shortest to
longest number of days, I lose the formula results due to a Ref error. How
can I correct this problem?

thanks,
harley



All times are GMT +1. The time now is 07:02 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com