Data displaying in column instead of row.

xFrosty

New Member
Joined
Nov 6, 2023
Messages
16
Office Version
  1. 2021
Platform
  1. Web
Hi there,

I have tried using Chat GPT to assist me with this particular thing I'm trying to achieve but I feel that I am entering the same formula over and over again just different ways of entering it in.

So here I am, frustrated because I've spent way too much time trying to get Excel to do what I want it to do.

So basically, I am trying to create a calendar thats a set and forget type thing. I have all the data matching to the dates etc, but what I want now is these particular figures to go into another cell(s) so I can track how much from each pay I need to set aside each week. I want the figures to go down the column, so far I've only managed to get them to appear across.

Heres where you come in.... Please help me before I give up! hahahaha.

These are the things I've tried

=IFERROR(INDEX($E$6:$R$10,SMALL(IF(ISNUMBER(SEARCH("S -",$E$6:$R$10)),ROW($E$6:$R$10)-ROW($E$6:$R$10)+1),ROW(INDIRECT("1:"&COUNTIF($E$6:$R$10,"S -*"))))),COLUMN(A1))

This one looked to be wanting to display the text I want but I only have the number 1 showing down the array.

Sample.xlsx
ABCDEFGHIJKLMNOPQRST
1November
2##########
3##########SundayMondayTuesdayWednesdayThursdayFridaySaturdayI want it to display this
4##########S - Phone
52829301234S - Debt
6` BILL & DEBT PAYMENTS CALENDAR `S - PhoneS - DebtS - PowerS - Power
7S - SchoolS - School
8TODAY'S DATE
9Tuesday, 7 Nov 2023Don’t want it to display this
10FoundNot FoundNot FoundNot FoundNot FoundNot FoundFoundNot FoundFoundNot FoundNot FoundNot FoundNot FoundNot Found
11Not FoundNot FoundNot FoundNot FoundNot FoundNot FoundNot FoundNot FoundFoundNot FoundNot FoundNot FoundNot FoundNot Found
12MONTHYEARNot FoundNot FoundNot FoundNot FoundNot FoundNot FoundNot FoundNot FoundNot FoundNot FoundNot FoundNot FoundNot FoundNot Found
13November2023
14
15START DAY
16Monday1
171
181
191
20
Sheet1
Cell Formulas
RangeFormula
B1B1=B13
A2A2=DATE(C13,A1,1)
A3A3=EOMONTH(A2,0)
A4,B9A4=TODAY()
E5E5=IF(B16="Sunday", A2 - WEEKDAY(A2, 1) + 1, IF(B16="Monday", A2 - WEEKDAY(A2, 2) + 1, ""))
G5,Q5,O5,M5,K5,I5G5=E5 + 1
E10:R12E10=IF(ISNUMBER(SEARCH("S -", E6:R8)), "Found", "Not Found")
E16:E19E16=IFERROR(INDEX($E$6:$R$8,SMALL(IF(ISNUMBER(SEARCH("S -",$E$6:$R$8)),ROW($E$6:$R$10)-ROW($E$6:$R$10)+1),ROW(INDIRECT("1:"&COUNTIF($E$6:$R$10,"S -*"))))),COLUMN(A1))
Dynamic array formulas.
Cells with Conditional Formatting
CellConditionCell FormatStop If True
C13Cell Valuebeginning with "✓"textNO
G5Expression=G5=TODAY()textNO
G5Expression=MonthToDisplayNumber<>MONTH(G5)textNO
E6:E7Cell Valuecontains "Payday"textNO
E6:E7Expression=E6=TODAY()textNO
E6:E7Expression=MonthToDisplayNumber<>MONTH(E6)textNO
E8Cell Valuecontains "Payday"textNO
E8Expression=E8=TODAY()textNO
E8Expression=MonthToDisplayNumber<>MONTH(E8)textNO
F5,H5,J5,L5,N5,P5,R5Cell Valuecontains "Payday"textNO
E5Expression=E5=TODAY()textNO
E5Expression=MonthToDisplayNumber<>MONTH(E5)textNO
G6:G8,I6:I8,K6:K8,M6:M8,O6:O8,Q6:Q8Cell Valuecontains "Payday"textNO
F5,K5:R5,H5:I5,G6:G8,I6:I8,K6:K8,M6:M8,O6:O8,Q6:Q8Expression=F5=TODAY()textNO
O8Expression=MonthToDisplayNumber<>MONTH(O8)textNO
F5,K5:R5,O6:O7,K6:K8,H5:I5,I6:I8,G6:G8,M6:M8,Q6:Q8Expression=MonthToDisplayNumber<>MONTH(F5)textNO
 

Excel Facts

Quick Sum
Select a range of cells. The total appears in bottom right of Excel screen. Right-click total to add Max, Min, Count, Average.
Welcome to the MrExcel board!

Is this what you want?

23 11 07.xlsm
EFGHIJKLMNOPQRSTU
3SundayMondayTuesdayWednesdayThursdayFridaySaturdayI want it to display this
4S - PhoneS - Phone
52829301234S - DebtS - Debt
6S - PhoneS - DebtS - PowerS - PowerS - Power
7S - SchoolS - SchoolS - School
Sheet2 (3)
Cell Formulas
RangeFormula
U4:U7U4=TOCOL(E6:R7,1)
Dynamic array formulas.
 
Upvote 1
Unfortunantly that gives me a Name? error.
Sorry, I thought that I had see you were using Microsoft 365. :oops:

Try this instead.

23 11 07.xlsm
EFGHIJKLMNOPQRST
3SundayMondayTuesdayWednesdayThursdayFridaySaturday
4S - Phone
52829301234S - Debt
6S - PhoneS - DebtS - PowerS - Power
7S - SchoolS - School
List
Cell Formulas
RangeFormula
T4:T7T4=FILTERXML("<p><c>"&TEXTJOIN("</c><c>",1,E6:Q7)&"</c></p>","//c")
Dynamic array formulas.
 
Upvote 1
=FILTERXML("<p><c>"&TEXTJOIN("</c><c>",1,E6:Q7)&"</c></p>","//c")
You are amazing! Thank you so much! I have been bashing my head against the desk with the answers chat gpt has been giving me for weeks.

I didnt realise different formulas worked on different products, you would think it all worked the same.

Whats the </c> and </p> represent?

Ok, so the next question is, how do I extract the dollar amounts out of that list and or have it add the amount I need to set aside? Is there a way the S - can be omitted too?
 
Upvote 0
I have been bashing my head against the desk with the answers chat gpt has been giving me for weeks.
I would give ChatGPT away for excel problems. It gives too many problematic suggestions.

I didnt realise different formulas worked on different products, you would think it all worked the same.
As new versions of Excel are released, new features are sometimes introduced. In general there is some reason that those new features are not compatible with older versions.

Whats the </c> and </p> represent?
Not a simple explanation. You can look here for more information about FILTERXML

, how do I extract the dollar amounts out of that list
What dollar amounts? I didn't see any. Perhaps some more small sample data and expected results?

Is there a way the S - can be omitted too?

23 11 07.xlsm
EFGHIJKLMNOPQRST
3SundayMondayTuesdayWednesdayThursdayFridaySaturday
4Phone
52829301234Debt
6S - PhoneS - DebtS - PowerPower
7S - SchoolSchool
List
Cell Formulas
RangeFormula
T4:T7T4=FILTERXML("<p><c>"&SUBSTITUTE(TEXTJOIN("</c><c>",1,E6:Q7),"S - ","")&"</c></p>","//c")
Dynamic array formulas.
 
Upvote 0
Appologies.

Sample.xlsx
EFGHIJKLMNOPQRSTUV
3SundayMondayTuesdayWednesdayThursdayFridaySaturdayI want it to display this
4
5303112345S - Phone - $34
6S - Phone - $34S - Debt - $30S - Power - $100S - Debt - $30
7S - School - $56S - Power - $100
8S - School - $56
9
10
11
12
13Total Needed$220.00
14
15
16
Sheet1
Cell Formulas
RangeFormula
E5E5=IF(B16="Sunday", A2 - WEEKDAY(A2, 1) + 1, IF(B16="Monday", A2 - WEEKDAY(A2, 2) + 1, ""))
G5,Q5,O5,M5,K5,I5G5=E5 + 1
T5T5=E6
T6T6=K6
T7:T8T7=M6
Cells with Conditional Formatting
CellConditionCell FormatStop If True
G5Expression=G5=TODAY()textNO
G5Expression=MonthToDisplayNumber<>MONTH(G5)textNO
E6:E7Cell Valuecontains "Payday"textNO
E6:E7Expression=E6=TODAY()textNO
E6:E7Expression=MonthToDisplayNumber<>MONTH(E6)textNO
E8Cell Valuecontains "Payday"textNO
E8Expression=E8=TODAY()textNO
E8Expression=MonthToDisplayNumber<>MONTH(E8)textNO
F5,H5,J5,L5,N5,P5,R5Cell Valuecontains "Payday"textNO
E5Expression=E5=TODAY()textNO
E5Expression=MonthToDisplayNumber<>MONTH(E5)textNO
G6:G8,I6:I8,K6:K8,M6:M8,O6:O8,Q6:Q8Cell Valuecontains "Payday"textNO
F5,K5:R5,H5:I5,G6:G8,I6:I8,K6:K8,M6:M8,O6:O8,Q6:Q8Expression=F5=TODAY()textNO
O8Expression=MonthToDisplayNumber<>MONTH(O8)textNO
F5,K5:R5,O6:O7,K6:K8,H5:I5,I6:I8,G6:G8,M6:M8,Q6:Q8Expression=MonthToDisplayNumber<>MONTH(F5)textNO
 
Upvote 0
Actually, Im sorry is there a way that it can be displayed like this instead? I think this would be an easier option.

Obviosuly using the same formula as above.

Sample.xlsx
TU
3
4
5Phone$34.00
6Debt$30.00
7Power$100.00
8School$56.00
9
10
11
12
13Total Needed$220.00
Sheet1
Cell Formulas
RangeFormula
U13U13=SUM(U5:U12)
Cells with Conditional Formatting
CellConditionCell FormatStop If True
T5:U8Cell Valuecontains "Payday"textNO
T5:U8Expression=T5=TODAY()textNO
T5:U8Expression=MonthToDisplayNumber<>MONTH(T5)textNO
 
Upvote 0
Try like this

xFrosty.xlsm
EFGHIJKLMNOPQRSTU
5303112345Phone34
6S - Phone - $34S - Debt - $30S - Power - $100Debt30
7S - School - $56Power100
8School56
9
Sheet2
Cell Formulas
RangeFormula
T5:T8T5=FILTERXML("<p><c>"&TEXTJOIN("</c><c>",1,TRIM(MID(SUBSTITUTE(E6:Q7,"-",REPT(" ",100)),100,100)))&"</c></p>","//c")
U5:U8U5=FILTERXML("<p><c>"&TEXTJOIN("</c><c>",1,TRIM(RIGHT(SUBSTITUTE(E6:Q7,"-",REPT(" ",100)),100)))&"</c></p>","//c")
Dynamic array formulas.
 
Upvote 0
Thank you, can this be used on different areas, such as E6:R10,E13:R17, E20:J24

Otherwise my other idea might just have to work. Leaving it as is and finding the amounts in my cells
 
Upvote 0

Forum statistics

Threads
1,224,817
Messages
6,181,149
Members
453,021
Latest member
Justyna P

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top