Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 11
Default Sorting By Values...NOT Formulas

I have a "source data" worksheet and a "summary" sheet. The summary
sheet contains If Formulas referencing the source data sheet. Ex:
=IF(Sheet1!A1="","",Sheet1!A1). The problem is that when I sort the
data on the summary sheet, it sorts by the formula contained within the
cell. Is there a way to force it to sort based on value instead?

  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 623
Default Sorting By Values...NOT Formulas

Excel always sorts on values, not on formulas.

The only way Excel will sort on a "formula" is if it's stored as text in the
cell. You can tell what it sorts on by what it displays in the cell. Is it
displaying the formula or the result? If it is displaying the formula, you need
to change the format to General, F2 the formula, then F9 (recalc) it. When you
get the result displayed, that's what Excel will sort on.

By the way, your formula can be simplified to =Sheet1!A1

--
Regards,
Fred


"AntnyMI" wrote in message
oups.com...
I have a "source data" worksheet and a "summary" sheet. The summary
sheet contains If Formulas referencing the source data sheet. Ex:
=IF(Sheet1!A1="","",Sheet1!A1). The problem is that when I sort the
data on the summary sheet, it sorts by the formula contained within the
cell. Is there a way to force it to sort based on value instead?



  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 11
Default Sorting By Values...NOT Formulas

Fred,
Addressing your points in reverse order, "=Sheet1!A1" is how I
originally wrote the formula. However, when sorting in descending
order, this would return all of the blank/empty rows first. I thought
adding the extra IF statement would correct this, but it didn't.

Any idea what I'm doing wrong?


Fred Smith wrote:
Excel always sorts on values, not on formulas.

The only way Excel will sort on a "formula" is if it's stored as text in the
cell. You can tell what it sorts on by what it displays in the cell. Is it
displaying the formula or the result? If it is displaying the formula, you need
to change the format to General, F2 the formula, then F9 (recalc) it. When you
get the result displayed, that's what Excel will sort on.

By the way, your formula can be simplified to =Sheet1!A1

--
Regards,
Fred


"AntnyMI" wrote in message
oups.com...
I have a "source data" worksheet and a "summary" sheet. The summary
sheet contains If Formulas referencing the source data sheet. Ex:
=IF(Sheet1!A1="","",Sheet1!A1). The problem is that when I sort the
data on the summary sheet, it sorts by the formula contained within the
cell. Is there a way to force it to sort based on value instead?


  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 35,218
Default Sorting By Values...NOT Formulas

You're not doing anything wrong--but excel doesn't work the way you want it to
work.

When I have to do stuff like this, I'll try to find a column/field that contains
a unique code per row. Then I'll put those values (not formulas) in my summary
worksheet.

Then I can use =vlookup() or =index(match()) to return the values other fields
on that row with the unique key.

AntnyMI wrote:

Fred,
Addressing your points in reverse order, "=Sheet1!A1" is how I
originally wrote the formula. However, when sorting in descending
order, this would return all of the blank/empty rows first. I thought
adding the extra IF statement would correct this, but it didn't.

Any idea what I'm doing wrong?

Fred Smith wrote:
Excel always sorts on values, not on formulas.

The only way Excel will sort on a "formula" is if it's stored as text in the
cell. You can tell what it sorts on by what it displays in the cell. Is it
displaying the formula or the result? If it is displaying the formula, you need
to change the format to General, F2 the formula, then F9 (recalc) it. When you
get the result displayed, that's what Excel will sort on.

By the way, your formula can be simplified to =Sheet1!A1

--
Regards,
Fred


"AntnyMI" wrote in message
oups.com...
I have a "source data" worksheet and a "summary" sheet. The summary
sheet contains If Formulas referencing the source data sheet. Ex:
=IF(Sheet1!A1="","",Sheet1!A1). The problem is that when I sort the
data on the summary sheet, it sorts by the formula contained within the
cell. Is there a way to force it to sort based on value instead?


--

Dave Peterson
  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 11
Default Sorting By Values...NOT Formulas

I think you're right. There might not be a way to do this in Excel.
However, in the event I didn't explain everything correctly, I included
more of the background info in the following post: "Pulling Data from
Another Worksheet"

Dave Peterson wrote:
You're not doing anything wrong--but excel doesn't work the way you want it to
work.




  #6   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 35,218
Default Sorting By Values...NOT Formulas

I think you explained everything ok.

But you may want to reconsider and keep all your data in one location. Between
sorting and autofiltering, you may find that you're able to do more things with
it.

AntnyMI wrote:

I think you're right. There might not be a way to do this in Excel.
However, in the event I didn't explain everything correctly, I included
more of the background info in the following post: "Pulling Data from
Another Worksheet"

Dave Peterson wrote:
You're not doing anything wrong--but excel doesn't work the way you want it to
work.


--

Dave Peterson
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
Sorting Possible avoiding cell Formulas? Mhz New Users to Excel 3 July 15th 06 10:58 PM
Challenge: Unique Values via Formulas Peter Bernadyne Excel Discussion (Misc queries) 3 March 27th 06 06:18 PM
Sorting Formulas with "Empty" Results Access n00b Excel Worksheet Functions 1 March 27th 06 12:06 AM
sorting rows without changing order of my values! roger Excel Discussion (Misc queries) 1 March 3rd 06 12:24 PM
Can you copy multiple tabs from formulas to values w/o paste spec? Brent Excel Worksheet Functions 2 October 27th 05 12:47 AM


All times are GMT +1. The time now is 10:40 AM.

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

About Us

"It's about Microsoft Excel"